]> git.sesse.net Git - ffmpeg/commitdiff
lavfi-regression: provide filter arguments to showfiltfmts
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 3 May 2011 22:47:53 +0000 (00:47 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 5 May 2011 16:38:48 +0000 (18:38 +0200)
In do_lavfi_pixfmts(), provide the filter arguments to showfiltfmts,
since some filter may require non-null or non-empty argument string
for working properly.

tests/lavfi-regression.sh

index ed13f7050abb4f37057f20f52ad1c545d6a95af3..7a5f239675c3ae46dbe42b49f81b1427fb7845fe 100755 (executable)
@@ -55,7 +55,7 @@ do_lavfi_pixfmts(){
     $ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^\..\.' | cut -d' ' -f2 | sort >$exclude_fmts
     $showfiltfmts scale | awk -F '[ \r]' '/^OUTPUT/{ print $3 }' | sort | comm -23 - $exclude_fmts >$out_fmts
 
-    pix_fmts=$($showfiltfmts $filter | awk -F '[ \r]' '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts)
+    pix_fmts=$($showfiltfmts $filter $filter_args | awk -F '[ \r]' '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts)
     for pix_fmt in $pix_fmts; do
         do_video_filter $pix_fmt "slicify=random,format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt
     done