Commit 95c86cb722 for ffmpeg
commit 95c86cb722b31353068d44bcf31094be1a1cdeba
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Thu Nov 5 18:51:18 2026 +0100
fate: let refcmp_metadata take the filter under test
The filter applied to the test source before the comparison becomes an
optional parameter, defaulting to the avgblur used so far.
Assisted-by: Claude
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 6322ddfacb..3c265fce2d 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -538,8 +538,9 @@ refcmp_metadata(){
refcmp=$1
pixfmt=$2
fuzz=${3:-0.001}
+ filter=${4:-avgblur=4}
ffmpeg -auto_conversion_filters $FLAGS $ENC_OPTS \
- -lavfi "testsrc2=size=300x200:rate=1:duration=5,format=${pixfmt},split[ref][tmp];[tmp]avgblur=4[enc];[enc][ref]${refcmp},metadata=print:file=-" \
+ -lavfi "testsrc2=size=300x200:rate=1:duration=5,format=${pixfmt},split[ref][tmp];[tmp]${filter}[enc];[enc][ref]${refcmp},metadata=print:file=-" \
-f null /dev/null | awk -v ref=${ref} -v fuzz=${fuzz} -f ${base}/refcmp-metadata.awk -
}