[FFmpeg-devel] [PATCH 2/2] FATE: Add test for HEVC NAL header parsing deadlock

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Mar 18 17:46:10 EET 2019


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 tests/fate/hevc.mak                     |  3 +++
 tests/ref/fate/hevc-nal-header-deadlock | 12 ++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 tests/ref/fate/hevc-nal-header-deadlock

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index db3ea19340..20e2183d64 100644
--- a/tests/fate/hevc.mak
+++ b/tests/fate/hevc.mak
@@ -253,6 +253,9 @@ fate-hevc-extradata-reload: CMD = framemd5 -i $(TARGET_SAMPLES)/hevc/extradata-r
 fate-hevc-monochrome-crop: CMD = probeframes -show_entries frame=width,height:stream=width,height $(TARGET_SAMPLES)/hevc/hevc-monochrome.hevc
 FATE_HEVC_FFPROBE-$(call DEMDEC, HEVC, HEVC) += fate-hevc-monochrome-crop
 
+fate-hevc-nal-header-deadlock: CMD = threads=2 framemd5 -i $(TARGET_SAMPLES)/hevc/nal_header_deadlock.mp4 -sws_flags bitexact -t 00:00.20 -an
+FATE_HEVC += fate-hevc-nal-header-deadlock
+
 FATE_SAMPLES_AVCONV += $(FATE_HEVC-yes)
 FATE_SAMPLES_FFPROBE += $(FATE_HEVC_FFPROBE-yes)
 
diff --git a/tests/ref/fate/hevc-nal-header-deadlock b/tests/ref/fate/hevc-nal-header-deadlock
new file mode 100644
index 0000000000..8ce7a066c7
--- /dev/null
+++ b/tests/ref/fate/hevc-nal-header-deadlock
@@ -0,0 +1,12 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,  3110400, c88154281ada839d3f209b0eab012577
+0,          1,          1,        1,  3110400, a2623ba4639cf246b803c08e7233112f
+0,          2,          2,        1,  3110400, 9208fcdb16664e91ada77d15cc29ace9
-- 
2.20.1



More information about the ffmpeg-devel mailing list