diff mbox

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

Message ID 201609040036.46655.cehoyos@ag.or.at
State Accepted
Headers show

Commit Message

Carl Eugen Hoyos Sept. 3, 2016, 10:36 p.m. UTC
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
From 7fa7dd607866ba8106e1964e794228c900847c8a Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos@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 mbox

Patch

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