summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-23 19:24:43 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-23 20:28:28 +0100
commitfe3de6bc6222276b3bcbd7d56e2a92a0cae2082e (patch)
tree5bb3406596313d37a802e94ade66d267c49f05a3 /tests
parenta14d4c076dde84d884b13fa7392d2e3be27b6fe9 (diff)
downloadffmpeg-fe3de6bc6222276b3bcbd7d56e2a92a0cae2082e.tar.gz
fate: Add test that also decodes packed_bframes.avi
No new reference samples are needed for this as the file already exists for testing the bitstream filter Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/mpeg4.mak3
-rw-r--r--tests/ref/fate/mpeg4-packed17
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/fate/mpeg4.mak b/tests/fate/mpeg4.mak
index 9c830602e7..ed6a2fac20 100644
--- a/tests/fate/mpeg4.mak
+++ b/tests/fate/mpeg4.mak
@@ -8,6 +8,9 @@ FATE_MPEG4-$(call DEMDEC, H263, H263) := $(addprefix fate-mpeg4-resolution-chang
fate-mpeg4-bsf-unpack-bframes: CMD = md5 -i $(TARGET_SAMPLES)/mpeg4/packed_bframes.avi -flags +bitexact -fflags +bitexact -c:v copy -bsf mpeg4_unpack_bframes -f avi
FATE_MPEG4-$(call ALLYES, AVI_DEMUXER MPEG4_UNPACK_BFRAMES_BSF AVI_MUXER) += fate-mpeg4-bsf-unpack-bframes
+fate-mpeg4-packed: CMD = framecrc -flags +bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg4/packed_bframes.avi -flags +bitexact -fflags +bitexact -vsync 1
+FATE_MPEG4-$(call ALLYES, AVI_DEMUXER MPEG4_DECODER) += fate-mpeg4-packed
+
FATE_MPEG4-$(call DEMDEC, M4V, MPEG4) += fate-m4v fate-m4v-cfr
fate-m4v: CMD = framecrc -flags +bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg4/demo.m4v
fate-m4v-cfr: CMD = framecrc -flags +bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg4/demo.m4v -vf fps=5
diff --git a/tests/ref/fate/mpeg4-packed b/tests/ref/fate/mpeg4-packed
new file mode 100644
index 0000000000..faf8f5ddb6
--- /dev/null
+++ b/tests/ref/fate/mpeg4-packed
@@ -0,0 +1,17 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 287232, 0x17288ed1
+0, 1, 1, 1, 287232, 0x17288ed1
+0, 2, 2, 1, 287232, 0x232dfda4
+0, 3, 3, 1, 287232, 0x1e880ed6
+0, 4, 4, 1, 287232, 0x60197d73
+0, 5, 5, 1, 287232, 0xe27a4c05
+0, 6, 6, 1, 287232, 0xa588b659
+0, 7, 7, 1, 287232, 0xaa111895
+0, 8, 8, 1, 287232, 0x39ad64c0
+0, 9, 9, 1, 287232, 0x2a046b62
+0, 10, 10, 1, 287232, 0x733dea31
+0, 11, 11, 1, 287232, 0x06e38bfc
+0, 12, 12, 1, 287232, 0xcc1d2de4
+0, 13, 13, 1, 287232, 0x207a0a62
+0, 14, 14, 1, 287232, 0x9ee6289f
+0, 15, 15, 1, 287232, 0x60dedf92