[FFmpeg-devel] [PATCH] fate: Add sm2v ref10 test

Michael Niedermayer michael at niedermayer.cc
Sat Jun 18 19:06:08 CEST 2016


---
 tests/fate/h264.mak            |    3 ++
 tests/ref/fate/h264-sm2v-ref10 |   82 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)
 create mode 100644 tests/ref/fate/h264-sm2v-ref10

diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index 4ae1305..8864735 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -204,6 +204,8 @@ FATE_H264-$(call DEMDEC,  MOV, H264) += fate-h264-invalid-ref-mod
 # this sample has invalid extradata that is not escaped
 FATE_H264-$(call DEMDEC,  MOV, H264) += fate-h264-unescaped-extradata
 
+FATE_H264-$(call DEMDEC,  AVI, H264) += fate-h264-sm2v-ref10
+
 FATE_H264-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF) += fate-h264-bsf-mp4toannexb
 FATE_H264-$(call DEMDEC, MATROSKA, H264) += fate-h264-direct-bff
 FATE_H264-$(call DEMDEC, FLV, H264) += fate-h264-brokensps-2580
@@ -414,6 +416,7 @@ fate-h264-xavc-4389:                              CMD = framecrc -i $(TARGET_SAM
 fate-h264-attachment-631:                         CMD = framecrc -i $(TARGET_SAMPLES)/h264/attachment631-small.mp4 -an -max_error_rate 0.95
 fate-h264-invalid-ref-mod:                        CMD = framecrc -i $(TARGET_SAMPLES)/h264/h264refframeregression.mp4 -an -frames 10 -pix_fmt yuv420p10le
 fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
+fate-h264-sm2v-ref10:                             CMD = framecrc -i $(TARGET_SAMPLES)/h264/ref_10.avi
 
 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-sm2v-ref10 b/tests/ref/fate/h264-sm2v-ref10
new file mode 100644
index 0000000..bd18c3e
--- /dev/null
+++ b/tests/ref/fate/h264-sm2v-ref10
@@ -0,0 +1,82 @@
+#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 0/1
+#tb 1: 1/44100
+#media_type 1: audio
+#codec_id 1: pcm_s16le
+#sample_rate 1: 44100
+#channel_layout 1: 3
+1,          0,          0,     1152,     4608, 0x00000000
+1,       1151,       1151,     1152,     4608, 0x00000000
+1,       2301,       2301,     1152,     4608, 0x3b8f13ee
+1,       3450,       3450,     1152,     4608, 0xbd76c8ea
+1,       4599,       4599,     1152,     4608, 0x2dee19ef
+1,       5749,       5749,     1152,     4608, 0xadfe1edb
+1,       6898,       6898,     1152,     4608, 0x94fbca12
+1,       8047,       8047,     1152,     4608, 0xc87d52db
+1,       9197,       9197,     1152,     4608, 0xe3f53d87
+1,      10346,      10346,     1152,     4608, 0x2605ffc8
+0,          6,          6,        1,   115200, 0xccfd98ff
+1,      11495,      11495,     1152,     4608, 0xd8b01dcf
+1,      12645,      12645,     1152,     4608, 0x3b5a6eab
+0,          7,          7,        1,   115200, 0x288b8d95
+1,      13794,      13794,     1152,     4608, 0x741c5d69
+0,          8,          8,        1,   115200, 0x0d5cb3a8
+1,      14944,      14944,     1152,     4608, 0x2fba1b66
+1,      16093,      16093,     1152,     4608, 0x68d75bda
+0,          9,          9,        1,   115200, 0x865ea4e5
+1,      17242,      17242,     1152,     4608, 0xabac5a9b
+1,      18392,      18392,     1152,     4608, 0x388ccfa4
+0,         10,         10,        1,   115200, 0x2f07038a
+1,      19541,      19541,     1152,     4608, 0xbbcaaa7c
+0,         11,         11,        1,   115200, 0xf4c9b24e
+1,      20690,      20690,     1152,     4608, 0x91397097
+0,         12,         12,        1,   115200, 0x0ee19bbc
+1,      23034,      23034,     1152,     4608, 0x98800d14
+0,         13,         13,        1,   115200, 0x9a01b261
+1,      24187,      24187,     1152,     4608, 0x7c0e74f8
+1,      25339,      25339,     1152,     4608, 0x6b3d358e
+0,         14,         14,        1,   115200, 0x5620af7b
+1,      26491,      26491,     1152,     4608, 0xcce18d23
+0,         15,         15,        1,   115200, 0x069536c0
+1,      27643,      27643,     1152,     4608, 0xf3f1073e
+1,      28795,      28795,     1152,     4608, 0x23d23fe7
+0,         16,         16,        1,   115200, 0x4d5a8933
+1,      29948,      29948,     1152,     4608, 0x2080ab5e
+1,      31100,      31100,     1152,     4608, 0x5456180e
+0,         17,         17,        1,   115200, 0xa347008f
+1,      32250,      32250,     1152,     4608, 0x77c62807
+0,         18,         18,        1,   115200, 0xcd10876b
+1,      33402,      33402,     1152,     4608, 0xa409b29a
+1,      34554,      34554,     1152,     4608, 0x6712d5ac
+0,         19,         19,        1,   115200, 0x0a91d0e7
+1,      35706,      35706,     1152,     4608, 0xef92792d
+0,         20,         20,        1,   115200, 0x24394b2c
+1,      36858,      36858,     1152,     4608, 0xd46e2dd5
+1,      38010,      38010,     1152,     4608, 0x573f9176
+0,         21,         21,        1,   115200, 0x62cc14b1
+1,      39162,      39162,     1152,     4608, 0x34b6cdca
+1,      40314,      40314,     1152,     4608, 0x4529f9fb
+0,         22,         22,        1,   115200, 0xe5f9457d
+1,      41466,      41466,     1152,     4608, 0x32525f2a
+0,         23,         23,        1,   115200, 0x855125bb
+1,      42618,      42618,     1152,     4608, 0x99372d2e
+1,      43770,      43770,     1152,     4608, 0x635393e6
+0,         24,         24,        1,   115200, 0xca25e7e2
+1,      44922,      44922,     1152,     4608, 0xe3cbad5c
+0,         25,         25,        1,   115200, 0x18f46979
+1,      46074,      46074,     1152,     4608, 0x3e1c68c6
+1,      47226,      47226,     1152,     4608, 0x31e491cc
+0,         26,         26,        1,   115200, 0x8d3acb61
+1,      48379,      48379,     1152,     4608, 0x17157bb5
+1,      49531,      49531,     1152,     4608, 0xdbc4fa72
+0,         27,         27,        1,   115200, 0x0b78d342
+1,      50683,      50683,     1152,     4608, 0x8b7ce17f
+0,         28,         28,        1,   115200, 0x86f3ee1b
+1,      51835,      51835,     1152,     4608, 0x49e48066
+1,      52987,      52987,     1152,     4608, 0xc4758fdc
+0,         29,         29,        1,   115200, 0x577fde9a
+1,      54215,      54215,     1152,     4608, 0xc7606bc0
+0,         30,         30,        1,   115200, 0xe788d981
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list