[FFmpeg-devel] [PATCH 2/2] fate: add a test for scale with variable input format.

Nicolas George nicolas.george at normalesup.org
Thu Oct 25 21:36:18 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 tests/fate/avfilter.mak   |    1 +
 tests/lavfi-regression.sh |    1 +
 tests/ref/lavfi/scalenorm |    1 +
 3 files changed, 3 insertions(+)
 create mode 100644 tests/ref/lavfi/scalenorm


This will avoid the feature breaking without anyone noticing.

Was there not something with crop or pad too?


diff --git a/tests/fate/avfilter.mak b/tests/fate/avfilter.mak
index 3b06d08..b931244 100644
--- a/tests/fate/avfilter.mak
+++ b/tests/fate/avfilter.mak
@@ -27,6 +27,7 @@ FATE_LAVFI = fate-lavfi-alphaextract_rgb                                \
              fate-lavfi-pixfmts_vflip                                   \
              fate-lavfi-scale200                                        \
              fate-lavfi-scale500                                        \
+             fate-lavfi-scalenorm                                       \
              fate-lavfi-select                                          \
              fate-lavfi-setdar                                          \
              fate-lavfi-setsar                                          \
diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh
index a25b54b..d515323 100755
--- a/tests/lavfi-regression.sh
+++ b/tests/lavfi-regression.sh
@@ -132,6 +132,7 @@ do_lavfi_lavd() {
 
 do_lavfi_lavd "life"                 "life=s=40x40:r=5:seed=42:mold=64" -t 2
 do_lavfi_lavd "testsrc"              "testsrc=r=7:n=2:d=10"
+do_lavfi_lavd "scalenorm"            "testsrc=s=512x384:d=1:r=5,format=yuv420p[a];testsrc=s=160x120:d=1:r=5[b];[a][b]concat=unsafe=1,scale"
 
 # TODO: add tests for
 # direct rendering,
diff --git a/tests/ref/lavfi/scalenorm b/tests/ref/lavfi/scalenorm
new file mode 100644
index 0000000..237e616
--- /dev/null
+++ b/tests/ref/lavfi/scalenorm
@@ -0,0 +1 @@
+scalenorm           63ba6117ea7a49a3d940d4d977bb67ae
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list