summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-04-10 11:24:03 +0200
committerAnton Khirnov <anton@khirnov.net>2016-04-15 10:04:52 +0200
commitd7abe900c3d34adcfef3a6f44a2e7bdb7d8974e7 (patch)
treeb3ebecc49195e8280752ebcbc8ba62626c2feb48 /tests
parent9d4d9be538faa537440fff37d3b7ecf322911a55 (diff)
FATE: add an H.264 test with invalid reference lists
See commit 9d74012
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/h264.mak6
-rw-r--r--tests/ref/fate/h264-invalid-ref-mod11
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index 34d03bf2d3..04aad0a270 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -185,6 +185,11 @@ FATE_H264 := $(FATE_H264:%=fate-h264-conformance-%) \
FATE_H264-$(call DEMDEC, H264, H264) += $(FATE_H264)
FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-crop-to-container
FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-interlace-crop
+
+# this sample has invalid reference list modification, but decodes fine
+# by using a previous ref frame instead of a missing one
+FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-invalid-ref-mod
+
FATE_H264-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF) += fate-h264-bsf-mp4toannexb
FATE_H264-$(call DEMDEC, MATROSKA, H264) += fate-h264-direct-bff
@@ -371,5 +376,6 @@ fate-h264-extreme-plane-pred: CMD = framemd5 -i $(TARGET_SAM
fate-h264-interlace-crop: CMD = framecrc -i $(TARGET_SAMPLES)/h264/interlaced_crop.mp4 -vframes 3
fate-h264-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/h264/lossless.h264
fate-h264-direct-bff: CMD = framecrc -i $(TARGET_SAMPLES)/h264/direct-bff.mkv
+fate-h264-invalid-ref-mod: CMD = framecrc -i $(TARGET_SAMPLES)/h264/h264refframeregression.mp4 -an -frames 10 -pix_fmt yuv420p10le
fate-h264-reinit-%: CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf format=yuv444p10le,scale=w=352:h=288
diff --git a/tests/ref/fate/h264-invalid-ref-mod b/tests/ref/fate/h264-invalid-ref-mod
new file mode 100644
index 0000000000..75bd2296e8
--- /dev/null
+++ b/tests/ref/fate/h264-invalid-ref-mod
@@ -0,0 +1,11 @@
+#tb 0: 1/24000
+0, 519, 519, 0, 6220800, 0x89daa15e
+0, 1520, 1520, 0, 6220800, 0xcf52e254
+0, 2521, 2521, 0, 6220800, 0x91132c13
+0, 3522, 3522, 0, 6220800, 0x37b8be91
+0, 4523, 4523, 0, 6220800, 0x2b09bafa
+0, 5524, 5524, 0, 6220800, 0x06d79d8d
+0, 6525, 6525, 0, 6220800, 0x8e793c1d
+0, 7526, 7526, 0, 6220800, 0xea0fd885
+0, 8527, 8527, 0, 6220800, 0x7786a2ad
+0, 9528, 9528, 0, 6220800, 0xed4f9dd9