mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
video-converter: clamp input lines correctly
This commit is contained in:
parent
ef98393b0d
commit
6a529cb1dd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue