From: Wim Taymans Date: Thu, 30 Oct 2014 17:40:43 +0000 (+0100) Subject: video-converter: clamp input lines correctly X-Git-Tag: 1.6.0~893 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a529cb1ddcc7aa21084a82982b4a7e68d67c223;p=platform%2Fupstream%2Fgst-plugins-base.git video-converter: clamp input lines correctly --- 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