mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine macro, use ffmpeg_stub and ffmpeg_tool, 0.9.224
This commit is contained in:
parent
9789335d0b
commit
2ed794ad52
5 changed files with 13 additions and 6 deletions
11
trunk/auto/depends.sh
Normal file → Executable file
11
trunk/auto/depends.sh
Normal file → Executable file
|
@ -658,12 +658,19 @@ if [ $SRS_FFMPEG_TOOL = YES ]; then
|
|||
if [ ! -f ${SRS_OBJS}/ffmpeg/bin/ffmpeg ]; then echo "build ffmpeg-2.1 failed."; exit -1; fi
|
||||
fi
|
||||
|
||||
# whether compile ffmpeg tool
|
||||
if [ $SRS_FFMPEG_TOOL = YES ]; then
|
||||
echo "#define SRS_AUTO_FFMPEG_TOOL" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_AUTO_FFMPEG_TOOL" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
||||
# whatever the FFMPEG tools, if transcode and ingest specified,
|
||||
# srs always compile the FFMPEG tool stub which used to start the FFMPEG process.
|
||||
if [ $SRS_FFMPEG_STUB = YES ]; then
|
||||
echo "#define SRS_AUTO_FFMPEG" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#define SRS_AUTO_FFMPEG_STUB" >> $SRS_AUTO_HEADERS_H
|
||||
else
|
||||
echo "#undef SRS_AUTO_FFMPEG" >> $SRS_AUTO_HEADERS_H
|
||||
echo "#undef SRS_AUTO_FFMPEG_STUB" >> $SRS_AUTO_HEADERS_H
|
||||
fi
|
||||
|
||||
if [ $SRS_TRANSCODE = YES ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue