[FFmpeg-devel] [PATCH 2/2] fate/h264: add test case for h264-loss_packet_for_prev_frame_num_offset

Steven Liu lq at chinaffmpeg.org
Wed Feb 16 10:51:46 EET 2022


From: Steven Liu <liuqi05 at kuaishou.com>

Signed-off-by: Steven Liu <liuqi05 at kuaishou.com>
---
 tests/fate/h264.mak                           |  2 ++
 ...h264-loss_packet_for_prev_frame_num_offset | 23 +++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset

diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index e075b6f67f..142a4ea708 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -195,6 +195,7 @@ FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
               fate-h264-lossless                                        \
               fate-h264-3386                                            \
               fate-h264-missing-frame                                   \
+              fate-h264-loss_packet_for_prev_frame_num_offset           \
               fate-h264-ref-pic-mod-overflow                            \
               fate-h264-timecode                                        \
               fate-h264-encparams
@@ -442,6 +443,7 @@ fate-h264-twofields-packet:                       CMD = framecrc -i $(TARGET_SAM
 fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
 fate-h264-3386:                                   CMD = framecrc -i $(TARGET_SAMPLES)/h264/bbc2.sample.h264
 fate-h264-missing-frame:                          CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264
+fate-h264-loss_packet_for_prev_frame_num_offset:  CMD = framecrc -i $(TARGET_SAMPLES)/h264/loss_packet_for_prev_frame_num_offset.h264
 fate-h264-timecode:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/crew_cif_timecode-2.h264
 
 fate-h264-reinit-%:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf scale,format=yuv444p10le,scale=w=352:h=288
diff --git a/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
new file mode 100644
index 0000000000..df8a88f5d4
--- /dev/null
+++ b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
@@ -0,0 +1,23 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
+0,          0,          0,        1,  1382400, 0xa21b9a12
+0,          1,          1,        1,  1382400, 0x9f266c66
+0,          2,          2,        1,  1382400, 0x08604d2c
+0,          3,          3,        1,  1382400, 0x0f59c63a
+0,          4,          4,        1,  1382400, 0xe9588c5d
+0,          5,          5,        1,  1382400, 0x01c3559a
+0,          6,          6,        1,  1382400, 0x40791f04
+0,          7,          7,        1,  1382400, 0x2047c562
+0,          8,          8,        1,  1382400, 0x24f7b450
+0,          9,          9,        1,  1382400, 0xfa3d00ed
+0,         10,         10,        1,  1382400, 0x8c3384ed
+0,         11,         11,        1,  1382400, 0xfa7c59e0
+0,         12,         12,        1,  1382400, 0x0d16c5d1
+0,         13,         13,        1,  1382400, 0x665bd32c
+0,         14,         14,        1,  1382400, 0xe8771b9d
+0,         15,         15,        1,  1382400, 0xd9824ab1
+0,         16,         16,        1,  1382400, 0xa7264481
+0,         17,         17,        1,  1382400, 0xdcaec99a
-- 
2.25.0



More information about the ffmpeg-devel mailing list