[FFmpeg-devel] [PATCH]fate: Add a test for ticket #5805.

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Sep 4 01:36:46 EEST 2016


Hi!

Attached is a patch to test ticket #5805.
Unrelated: There is an unused (never used) sample in fate/jpg, see 
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-October/181127.html

Please comment, Carl Eugen
-------------- next part --------------
From 7fa7dd607866ba8106e1964e794228c900847c8a Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Sun, 4 Sep 2016 00:33:50 +0200
Subject: [PATCH] fate: Add test for ticket #5805.

---
 tests/fate/image.mak    |    7 +++++++
 tests/ref/fate/jpg-jfif |    6 ++++++
 2 files changed, 13 insertions(+)
 create mode 100644 tests/ref/fate/jpg-jfif

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 178624a..f786503 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -393,6 +393,13 @@ FATE_XBM-$(call DEMDEC, IMAGE2, XBM) += $(FATE_XBM)
 FATE_IMAGE += $(FATE_XBM-yes)
 fate-xbm: $(FATE_XBM-yes)
 
+FATE_JPG += fate-jpg-jfif
+fate-jpg-jfif: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/12bpp.jpg
+
+FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG) += $(FATE_JPG)
+FATE_IMAGE += $(FATE_JPG-yes)
+fate-jpg: $(FATE_JPG-yes)
+
 FATE_IMAGE += $(FATE_IMAGE-yes)
 
 FATE_SAMPLES_FFMPEG += $(FATE_IMAGE)
diff --git a/tests/ref/fate/jpg-jfif b/tests/ref/fate/jpg-jfif
new file mode 100644
index 0000000..4c44217
--- /dev/null
+++ b/tests/ref/fate/jpg-jfif
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 999x749
+#sar 0: 300/300
+0,          0,          0,        1,  1496502, 0xd91deb4b
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list