[libav-devel] [PATCH 5/5] FATE: add a test for the mjpegadump bitstream filter

Anton Khirnov anton at khirnov.net
Tue Nov 26 10:21:50 CET 2013


---
 tests/fate/bsf.mak            |    3 +++
 tests/ref/fate/bsf-mjpegadump |   11 +++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 tests/ref/fate/bsf-mjpegadump

diff --git a/tests/fate/bsf.mak b/tests/fate/bsf.mak
index 42d103d..fd07bc6 100644
--- a/tests/fate/bsf.mak
+++ b/tests/fate/bsf.mak
@@ -14,5 +14,8 @@ fate-bsf-imxdump: REF = de19b79d96147208f00ffcf9980efdda
 FATE_BSF-$(call ALLYES,AVI_DEMUXER,MJPEG2JPEG_BSF) += fate-bsf-mjpeg2jpeg
 fate-bsf-mjpeg2jpeg: CMD = framecrc -i $(TARGET_SAMPLES)/mjpeg/mjpeg_avi1.avi -c copy -bsf mjpeg2jpeg
 
+FATE_BSF-$(call ALLYES,AVI_DEMUXER,MJPEGA_DUMP_HEADER_BSF) += fate-bsf-mjpegadump
+fate-bsf-mjpegadump: CMD = framecrc -i $(TARGET_SAMPLES)/mjpeg/mjpeg_avi1.avi -c copy -bsf mjpegadump
+
 FATE_SAMPLES_AVCONV += $(FATE_BSF-yes)
 fate-bsf: $(FATE_BSF-yes)
diff --git a/tests/ref/fate/bsf-mjpegadump b/tests/ref/fate/bsf-mjpegadump
new file mode 100644
index 0000000..49a9a01
--- /dev/null
+++ b/tests/ref/fate/bsf-mjpegadump
@@ -0,0 +1,11 @@
+#tb 0: 1/15
+0,          0,          0,        1,    10836, 0x0bcc1847
+0,          1,          1,        1,    10944, 0xefa95007
+0,          2,          2,        1,    10896, 0x1a353b90
+0,          3,          3,        1,    11016, 0x1957507e
+0,          4,          4,        1,    11040, 0x08178c09
+0,          5,          5,        1,    11088, 0xc6828f77
+0,          6,          6,        1,    11148, 0x92467d10
+0,          7,          7,        1,    11144, 0xd3579cb3
+0,          8,          8,        1,    10988, 0xad8454db
+0,          9,          9,        1,    11168, 0x9b628b33
-- 
1.7.10.4



More information about the libav-devel mailing list