diff options
author | Måns Rullgård <mans@mansr.com> | 2006-07-09 12:02:15 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-07-09 12:02:15 +0000 |
commit | af9e7d181068a42272b290e48c43c343b492a349 (patch) | |
tree | 1bde651a37cc81e9dcb06406af4e098b588ac750 /configure | |
parent | 18769c0a7974a1ba7385eb030e4400046df5330d (diff) | |
download | ffmpeg-af9e7d181068a42272b290e48c43c343b492a349.tar.gz |
--enable/disable parsers. Warning: some combinations are broken.
Originally committed as revision 5691 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -106,6 +106,9 @@ show_help(){ echo " --disable-decoders disables all decoders" echo " --disable-muxers disables all muxers" echo " --disable-demuxers disables all demuxers" + echo " --enable-parser=NAME enables parser NAME" + echo " --disable-parser=NAME disables parser NAME" + echo " --disable-parsers disables all parsers" echo "" echo "NOTE: Object files are built at the place where configure is launched." exit 1 @@ -658,6 +661,7 @@ for opt do done CODEC_LIST=`grep 'register_avcodec(&[a-z]' $source_path/libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'` +PARSER_LIST=`grep 'av_register_codec_parser(&[a-z]' $source_path/libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'` for opt do case "$opt" in @@ -819,6 +823,12 @@ for opt do ;; --disable-demuxers) demuxers="no" ;; + --enable-parser=*) PARSER_LIST="$PARSER_LIST ${opt#*=}_parser" + ;; + --disable-parser=*) PARSER_LIST="`echo $PARSER_LIST | sed -e \"s#${opt#*=}_parser##\"`" + ;; + --disable-parsers) PARSER_LIST="" + ;; --help) show_help ;; *) @@ -2072,7 +2082,7 @@ if test "$amr_if2" = "yes" ; then fi -for codec in $CODEC_LIST ; do +for codec in $CODEC_LIST $PARSER_LIST; do echo "#define CONFIG_`echo $codec | tr a-z A-Z` 1" >> $TMPH echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.mak done |