From 6a529cb1ddcc7aa21084a82982b4a7e68d67c223 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 Oct 2014 18:40:43 +0100 Subject: [PATCH] video-converter: clamp input lines correctly --- gst-libs/gst/video/video-converter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c index 03870f1..1ca7bf0 100644 --- a/gst-libs/gst/video/video-converter.c +++ b/gst-libs/gst/video/video-converter.c @@ -1209,7 +1209,7 @@ do_unpack_lines (GstLineCache * cache, gint line, GstVideoConverter * convert) gpointer tmpline; guint cline; - cline = CLAMP (line + convert->in_y, 0, convert->in_maxheight); + cline = CLAMP (line + convert->in_y, 0, convert->in_maxheight - 1); /* FIXME we should be able to use the input line without unpack if the * format is already suitable. When we do this, we should be careful not to -- 2.7.4