You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
simplify processing of some --disable-* options
Originally committed as revision 12342 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
25
configure
vendored
25
configure
vendored
@@ -1033,22 +1033,6 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--disable-strip) disable dostrip
|
--disable-strip) disable dostrip
|
||||||
;;
|
;;
|
||||||
--disable-encoders) disable $ENCODER_LIST
|
|
||||||
;;
|
|
||||||
--disable-decoders) disable $DECODER_LIST
|
|
||||||
;;
|
|
||||||
--disable-muxers) disable $MUXER_LIST
|
|
||||||
;;
|
|
||||||
--disable-filters) disable $FILTER_LIST
|
|
||||||
;;
|
|
||||||
--disable-demuxers) disable $DEMUXER_LIST
|
|
||||||
;;
|
|
||||||
--disable-parsers) disable $PARSER_LIST
|
|
||||||
;;
|
|
||||||
--disable-bsfs) disable $BSF_LIST
|
|
||||||
;;
|
|
||||||
--disable-protocols) disable $PROTOCOL_LIST
|
|
||||||
;;
|
|
||||||
--disable-devices) disable $INDEV_LIST $OUTDEV_LIST
|
--disable-devices) disable $INDEV_LIST $OUTDEV_LIST
|
||||||
;;
|
;;
|
||||||
--enable-debug=*) debuglevel="$optval"
|
--enable-debug=*) debuglevel="$optval"
|
||||||
@@ -1062,8 +1046,13 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--enable-?*|--disable-?*)
|
--enable-?*|--disable-?*)
|
||||||
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
|
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
|
||||||
echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt
|
if is_in $option $COMPONENT_LIST; then
|
||||||
$action $option
|
eval $action \$$(toupper ${option%s})_LIST
|
||||||
|
elif is_in $option $CMDLINE_SELECT; then
|
||||||
|
$action $option
|
||||||
|
else
|
||||||
|
die_unknown $opt
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
--list-*)
|
--list-*)
|
||||||
NAME="${opt#--list-}"
|
NAME="${opt#--list-}"
|
||||||
|
|||||||
Reference in New Issue
Block a user