OSDN Git Service

fate: Add h264 test for frame num gaps
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 12 Dec 2016 14:33:28 +0000 (14:33 +0000)
committerAnton Khirnov <anton@khirnov.net>
Wed, 14 Dec 2016 10:01:50 +0000 (11:01 +0100)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
tests/fate/h264.mak
tests/ref/fate/h264-missing-frame [new file with mode: 0644]

index 635abcd..3d6fde7 100644 (file)
@@ -182,6 +182,7 @@ FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
               fate-h264-extreme-plane-pred                              \
               fate-h264-intra-refresh-recovery                          \
               fate-h264-lossless                                        \
+              fate-h264-missing-frame                                   \
 
 FATE_H264-$(call DEMDEC, H264, H264) += $(FATE_H264)
 FATE_H264-$(call DEMDEC,  MOV, H264) += fate-h264-crop-to-container
@@ -397,5 +398,6 @@ fate-h264-lossless:                               CMD = framecrc -i $(TARGET_SAM
 fate-h264-mixed-nal-coding:                       CMD = framecrc -i $(TARGET_SAMPLES)/h264/mixed-nal-coding.mp4
 fate-h264-twofields-packet:                       CMD = framecrc -i $(TARGET_SAMPLES)/h264/twofields_packet.mp4 -an -frames 30
 fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
+fate-h264-missing-frame:                          CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264
 
 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-missing-frame b/tests/ref/fate/h264-missing-frame
new file mode 100644 (file)
index 0000000..61c5f2f
--- /dev/null
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0,          0,          0,        1,  2332800, 0x009dacb8
+0,          1,          1,        1,  2332800, 0xb1e50764
+0,          2,          2,        1,  2332800, 0xe29481e0
+0,          3,          3,        1,  2332800, 0x0b1b4de4
+0,          4,          4,        1,  2332800, 0x726a644c
+0,          5,          5,        1,  2332800, 0x7a09c4a5
+0,          6,          6,        1,  2332800, 0x2e9059ea
+0,          7,          7,        1,  2332800, 0x52071fdc
+0,          8,          8,        1,  2332800, 0x4fa00417
+0,          9,          9,        1,  2332800, 0x6037fb4d
+0,         10,         10,        1,  2332800, 0x887ffae2
+0,         11,         11,        1,  2332800, 0x887ffae2
+0,         12,         12,        1,  2332800, 0x887ffae2
+0,         13,         13,        1,  2332800, 0x887ffae2
+0,         14,         14,        1,  2332800, 0x887ffae2
+0,         15,         15,        1,  2332800, 0x887ffae2
+0,         16,         16,        1,  2332800, 0x887ffae2
+0,         17,         17,        1,  2332800, 0x887ffae2
+0,         18,         18,        1,  2332800, 0x887ffae2
+0,         19,         19,        1,  2332800, 0x887ffae2
+0,         20,         20,        1,  2332800, 0x887ffae2
+0,         21,         21,        1,  2332800, 0x887ffae2
+0,         22,         22,        1,  2332800, 0x887ffae2
+0,         23,         23,        1,  2332800, 0x887ffae2
+0,         24,         24,        1,  2332800, 0x887ffae2
+0,         25,         25,        1,  2332800, 0x887ffae2
+0,         26,         26,        1,  2332800, 0x887ffae2
+0,         27,         27,        1,  2332800, 0x887ffae2
+0,         28,         28,        1,  2332800, 0x887ffae2
+0,         29,         29,        1,  2332800, 0x824bb91b