diff mbox

[FFmpeg-devel] Add fate test for ticket 6024, truncated decoding mode

Message ID 1482015732-28221-1-git-send-email-pkoshevoy@gmail.com
State Superseded
Headers show

Commit Message

Pavel Koshevoy Dec. 17, 2016, 11:02 p.m. UTC
From: Pavel Koshevoy <pkoshevoy@gmail.com>

---
 tests/fate/video.mak            |  3 +++
 tests/ref/fate/mpeg2-ticket6024 | 27 +++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 tests/ref/fate/mpeg2-ticket6024
diff mbox

Patch

diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index f893688..b939185 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -239,6 +239,9 @@  FATE_VIDEO-$(call DEMDEC, MPEGTS, MPEG2VIDEO) += fate-mpeg2-field-enc fate-mpeg2
 fate-mpeg2-field-enc: CMD = framecrc -flags +bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -an -vframes 30
 fate-mpeg2-ticket186: CMD = framecrc -flags +bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/t.mpg -an
 
+FATE_VIDEO-$(call DEMDEC, MPEGPS, MPEG2VIDEO) += fate-mpeg2-ticket6024
+fate-mpeg2-ticket6024: CMD = framecrc -flags truncated -i $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg -an
+
 FATE_VIDEO-$(call DEMDEC, MV, MVC1) += fate-mv-mvc1
 fate-mv-mvc1: CMD = framecrc -i $(TARGET_SAMPLES)/mv/posture.mv -an -frames 25 -pix_fmt rgb555le
 
diff --git a/tests/ref/fate/mpeg2-ticket6024 b/tests/ref/fate/mpeg2-ticket6024
new file mode 100644
index 0000000..bd41624
--- /dev/null
+++ b/tests/ref/fate/mpeg2-ticket6024
@@ -0,0 +1,27 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 716x236
+#sar 0: 1/1
+0,          2,          2,        1,   253464, 0xc51a46f9
+0,          4,          4,        1,   253464, 0xd0661651
+0,          5,          5,        1,   253464, 0x38a213b3
+0,          6,          6,        1,   253464, 0x038a5118
+0,          7,          7,        1,   253464, 0xebd8de64
+0,          8,          8,        1,   253464, 0x0b319ee0
+0,          9,          9,        1,   253464, 0x37b03a45
+0,         10,         10,        1,   253464, 0x5f9c89ae
+0,         11,         11,        1,   253464, 0x88ad9c08
+0,         12,         12,        1,   253464, 0x387198bc
+0,         13,         13,        1,   253464, 0xf3933eb6
+0,         14,         14,        1,   253464, 0x9bd27b98
+0,         15,         15,        1,   253464, 0x9442c538
+0,         16,         16,        1,   253464, 0x330be2a4
+0,         17,         17,        1,   253464, 0xb4b8c1df
+0,         18,         18,        1,   253464, 0xc97ded34
+0,         19,         19,        1,   253464, 0xcad936e0
+0,         20,         20,        1,   253464, 0x11a2850d
+0,         21,         21,        1,   253464, 0x2545ad23
+0,         22,         22,        1,   253464, 0xa5e17c47
+0,         23,         23,        1,   253464, 0x39452689
+0,         24,         24,        1,   253464, 0x1daefd72