X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fcodec_names.sh;h=0e499c9c49e7a953b7f3c1146587f9ed9ea9cc0a;hb=dde545c6970bca308b0b3f91dbb378d46f6808a4;hp=167d29771e2eb72076301bdaafdc2c5da649f15f;hpb=fae714a9fbff876c4cacfe7d437c940d557b44ce;p=ffmpeg diff --git a/libavcodec/codec_names.sh b/libavcodec/codec_names.sh index 167d29771e2..0e499c9c49e 100755 --- a/libavcodec/codec_names.sh +++ b/libavcodec/codec_names.sh @@ -21,8 +21,7 @@ set -e config="$1" -codecs="$2" -out="$3" +out="$2" test -n "$out" outval="" @@ -63,7 +62,7 @@ parse_enum_codecid () { while read line; do case "$line" in "};") break;; - *CODEC_ID_FIRST*///*dummy*) ;; + *CODEC_ID_FIRST*=*) ;; CODEC_ID_*) define_codecid ${line%%[=,]*};; esac done @@ -78,7 +77,7 @@ parse_avcodec_h () { } parse_config_h < "$config" -parse_avcodec_h < "$codecs" +parse_avcodec_h # use stdin sed -e '/case.*:/!y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' \ -e 's/extern avcodec /extern AVCodec /' > "$out" <