From 9d3504ad7b3a0d3c665f5685b142511999adfc42 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Sat, 28 Oct 2017 19:44:54 +0200
Subject: [PATCH 3/3] fate/testsrc2 : add test for two hang cases

---
 tests/fate/filter-video.mak                  |  6 ++++++
 tests/ref/fate/filter-testsrc2-yuv420p_2x100 | 30 ++++++++++++++++++++++++++++
 tests/ref/fate/filter-testsrc2-yuv420p_2x2   | 30 ++++++++++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 tests/ref/fate/filter-testsrc2-yuv420p_2x100
 create mode 100644 tests/ref/fate/filter-testsrc2-yuv420p_2x2

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index c19f301ff8..eb37987eba 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -74,6 +74,12 @@ fate-filter-lavd-testsrc: CMD = framecrc -f lavfi -i testsrc=r=7:n=2:d=10
 FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER) += fate-filter-testsrc2-yuv420p
 fate-filter-testsrc2-yuv420p: CMD = framecrc -lavfi testsrc2=r=7:d=10 -pix_fmt yuv420p
 
+FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER) += fate-filter-testsrc2-yuv420p_2x2
+fate-filter-testsrc2-yuv420p_2x2: CMD = framecrc -lavfi testsrc2=s=2x2:d=1 -pix_fmt yuv420p
+
+FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER) += fate-filter-testsrc2-yuv420p_2x100
+fate-filter-testsrc2-yuv420p_2x100: CMD = framecrc -lavfi testsrc2=s=2x100:d=1 -pix_fmt yuv420p
+
 FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER) += fate-filter-testsrc2-yuv444p
 fate-filter-testsrc2-yuv444p: CMD = framecrc -lavfi testsrc2=r=7:d=10 -pix_fmt yuv444p
 
diff --git a/tests/ref/fate/filter-testsrc2-yuv420p_2x100 b/tests/ref/fate/filter-testsrc2-yuv420p_2x100
new file mode 100644
index 0000000000..c45e3bd9c2
--- /dev/null
+++ b/tests/ref/fate/filter-testsrc2-yuv420p_2x100
@@ -0,0 +1,30 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2x100
+#sar 0: 1/1
+0,          0,          0,        1,      300, 0xbe448160
+0,          1,          1,        1,      300, 0x399f81a8
+0,          2,          2,        1,      300, 0xaf2781e8
+0,          3,          3,        1,      300, 0x04368218
+0,          4,          4,        1,      300, 0x74ae8258
+0,          5,          5,        1,      300, 0xd27e8298
+0,          6,          6,        1,      300, 0x1f2182c0
+0,          7,          7,        1,      300, 0x8c058308
+0,          8,          8,        1,      300, 0xd33d8328
+0,          9,          9,        1,      300, 0x3b188370
+0,         10,         10,        1,      300, 0x7e488390
+0,         11,         11,        1,      300, 0xd66483d8
+0,         12,         12,        1,      300, 0x179f8400
+0,         13,         13,        1,      300, 0x757f8440
+0,         14,         14,        1,      300, 0xd0238488
+0,         15,         15,        1,      300, 0x0c8684b0
+0,         16,         16,        1,      300, 0x610684f0
+0,         17,         17,        1,      300, 0x99428518
+0,         18,         18,        1,      300, 0xe6628558
+0,         19,         19,        1,      300, 0x1b7d8580
+0,         20,         20,        1,      300, 0x683985c8
+0,         21,         21,        1,      300, 0xb2d18608
+0,         22,         22,        1,      300, 0xdf098628
+0,         23,         23,        1,      300, 0x26588678
+0,         24,         24,        1,      300, 0x53088698
diff --git a/tests/ref/fate/filter-testsrc2-yuv420p_2x2 b/tests/ref/fate/filter-testsrc2-yuv420p_2x2
new file mode 100644
index 0000000000..31da323178
--- /dev/null
+++ b/tests/ref/fate/filter-testsrc2-yuv420p_2x2
@@ -0,0 +1,30 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2x2
+#sar 0: 1/1
+0,          0,          0,        1,        6, 0x0aae0298
+0,          1,          1,        1,        6, 0x0aae0298
+0,          2,          2,        1,        6, 0x0aae0298
+0,          3,          3,        1,        6, 0x0aae0298
+0,          4,          4,        1,        6, 0x0aae0298
+0,          5,          5,        1,        6, 0x0aae0298
+0,          6,          6,        1,        6, 0x0aae0298
+0,          7,          7,        1,        6, 0x0aae0298
+0,          8,          8,        1,        6, 0x0aae0298
+0,          9,          9,        1,        6, 0x0aae0298
+0,         10,         10,        1,        6, 0x0aae0298
+0,         11,         11,        1,        6, 0x0aae0298
+0,         12,         12,        1,        6, 0x0aae0298
+0,         13,         13,        1,        6, 0x0aae0298
+0,         14,         14,        1,        6, 0x0aae0298
+0,         15,         15,        1,        6, 0x0aae0298
+0,         16,         16,        1,        6, 0x0aae0298
+0,         17,         17,        1,        6, 0x0aae0298
+0,         18,         18,        1,        6, 0x0aae0298
+0,         19,         19,        1,        6, 0x0aae0298
+0,         20,         20,        1,        6, 0x0aae0298
+0,         21,         21,        1,        6, 0x0aae0298
+0,         22,         22,        1,        6, 0x0aae0298
+0,         23,         23,        1,        6, 0x0aae0298
+0,         24,         24,        1,        6, 0x0aae0298
-- 
2.11.0 (Apple Git-81)

