projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef98393
)
video-converter: clamp input lines correctly
author
Wim Taymans
<wtaymans@redhat.com>
Thu, 30 Oct 2014 17:40:43 +0000
(18:40 +0100)
committer
Wim Taymans
<wtaymans@redhat.com>
Fri, 31 Oct 2014 10:23:21 +0000
(11:23 +0100)
gst-libs/gst/video/video-converter.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/video-converter.c
b/gst-libs/gst/video/video-converter.c
index
03870f1
..
1ca7bf0
100644
(file)
--- 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