Commit 6eefb6fd authored by Måns Rullgård's avatar Måns Rullgård

set CONFIG_ENCODERS/CONFIG_DECODERS only if any encoders/decoders are enabled

Originally committed as revision 5629 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 98d417cb
...@@ -1732,12 +1732,16 @@ fi ...@@ -1732,12 +1732,16 @@ fi
echo "EXTRALIBS=$extralibs" >> config.mak echo "EXTRALIBS=$extralibs" >> config.mak
# If you do not want to use encoders, disable them. # If you do not want to use encoders, disable them.
echo "#define CONFIG_ENCODERS 1" >> $TMPH if echo "$CODEC_LIST" | grep -q encoder; then
echo "CONFIG_ENCODERS=yes" >> config.mak echo "#define CONFIG_ENCODERS 1" >> $TMPH
echo "CONFIG_ENCODERS=yes" >> config.mak
fi
# If you do not want to use decoders, disable them. # If you do not want to use decoders, disable them.
echo "#define CONFIG_DECODERS 1" >> $TMPH if echo "$CODEC_LIST" | grep -q decoder; then
echo "CONFIG_DECODERS=yes" >> config.mak echo "#define CONFIG_DECODERS 1" >> $TMPH
echo "CONFIG_DECODERS=yes" >> config.mak
fi
# muxers # muxers
if test "$muxers" = "yes" ; then if test "$muxers" = "yes" ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment