]> git.sesse.net Git - ffmpeg/commitdiff
FATE: add an H.264 test with invalid reference lists
authorAnton Khirnov <anton@khirnov.net>
Sun, 10 Apr 2016 09:24:03 +0000 (11:24 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 15 Apr 2016 08:04:52 +0000 (10:04 +0200)
See commit 9d74012

tests/fate/h264.mak
tests/ref/fate/h264-invalid-ref-mod [new file with mode: 0644]

index 34d03bf2d3a1ceadd3c45735c6c93b72123c70be..04aad0a270235e065c3af5f6fab920fe34cab273 100644 (file)
@@ -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 (file)
index 0000000..75bd229
--- /dev/null
@@ -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