diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh index 5933efe10d..8ce5fb1a6c 100755 --- a/tests/lavfi-regression.sh +++ b/tests/lavfi-regression.sh @@ -46,13 +46,13 @@ do_lavfi_pixfmts(){ $ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^\..\.' | cut -d' ' -f2 | sort >$exclude_fmts $showfiltfmts scale | awk '/^OUTPUT/{ print $3 }' | sort | comm -23 - $exclude_fmts >$out_fmts - pix_fmts=$($showfiltfmts $filter | awk '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts) - for pix_fmt in $pix_fmts; do - output=${test}-${pix_fmt}.nut - do_video_encoding $output "" \ - "-vf slicify=random,format=$pix_fmt,$filter=$filter_args -vcodec rawvideo -pix_fmt $pix_fmt" - rm ${outfile}${output} - done + pix_fmts=$($showfiltfmts $filter | awk '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts) + for pix_fmt in $pix_fmts; do + output=${test}-${pix_fmt}.nut + do_video_encoding $output "" \ + "-vf slicify=random,format=$pix_fmt,$filter=$filter_args -vcodec rawvideo -pix_fmt $pix_fmt" + rm ${outfile}${output} + done rm $exclude_fmts $out_fmts }