projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2ea46c
)
colorspace: Fix v210 writing out of bounds
author
David Schleef
<ds@schleef.org>
Tue, 21 Feb 2012 09:05:20 +0000
(10:05 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 21 Feb 2012 09:05:20 +0000
(10:05 +0100)
Port from 0.10 branch in -bad
gst/videoconvert/videoconvert.c
patch
|
blob
|
history
diff --git
a/gst/videoconvert/videoconvert.c
b/gst/videoconvert/videoconvert.c
index 8533cf6bc7443c125b424f4235652dd6ae8ed7c1..54dc6298165d3b117a812764c66a6786342b2c3d 100644
(file)
--- a/
gst/videoconvert/videoconvert.c
+++ b/
gst/videoconvert/videoconvert.c
@@
-395,7
+395,7
@@
putline_v210 (VideoConvert * convert, GstVideoFrame * dest, const guint8 * src,
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
- for (i = 0; i < convert->width
+ 5
; i += 6) {
+ for (i = 0; i < convert->width; i += 6) {
guint32 a0, a1, a2, a3;
guint16 y0, y1, y2, y3, y4, y5;
guint16 u0, u1, u2;
@@
-501,7
+501,7
@@
putline16_v210 (VideoConvert * convert, GstVideoFrame * dest,
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
- for (i = 0; i < convert->width
+ 5
; i += 6) {
+ for (i = 0; i < convert->width; i += 6) {
guint32 a0, a1, a2, a3;
guint16 y0, y1, y2, y3, y4, y5;
guint16 u0, u1, u2;