From 3eaa767833647ab8ce270e091925557543ae5d35 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Sat, 28 Oct 2017 18:33:26 +0200
Subject: [PATCH 2/3] libavfilter/vsrc_testsrc : fix hang with testsrc2 and
 small size

---
 libavfilter/vsrc_testsrc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index fe0d50aa41..81e8ce2e69 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -851,9 +851,10 @@ static void test2_fill_picture(AVFilterContext *ctx, AVFrame *frame)
     {
         unsigned xmin = av_rescale(5, s->w, 8);
         unsigned xmax = av_rescale(7, s->w, 8);
-        unsigned ymin = av_rescale(5, s->h, 8);
-        unsigned ymax = av_rescale(7, s->h, 8);
-        unsigned x, y, i, r;
+        int ymin = av_rescale(5, s->h, 8);
+        int ymax = av_rescale(7, s->h, 8);
+        unsigned x, i, r;
+        int y;
         uint8_t alpha[256];
 
         r = s->pts;
-- 
2.11.0 (Apple Git-81)

