colorspace: Fix v210 writing out of bounds
Port from 0.10 branch in -bad
This commit is contained in:
parent
d2ea46cdbf
commit
df11b1a5d1
@ -395,7 +395,7 @@ putline_v210 (VideoConvert * convert, GstVideoFrame * dest, const guint8 * src,
|
|||||||
int i;
|
int i;
|
||||||
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
|
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;
|
guint32 a0, a1, a2, a3;
|
||||||
guint16 y0, y1, y2, y3, y4, y5;
|
guint16 y0, y1, y2, y3, y4, y5;
|
||||||
guint16 u0, u1, u2;
|
guint16 u0, u1, u2;
|
||||||
@ -501,7 +501,7 @@ putline16_v210 (VideoConvert * convert, GstVideoFrame * dest,
|
|||||||
int i;
|
int i;
|
||||||
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
|
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;
|
guint32 a0, a1, a2, a3;
|
||||||
guint16 y0, y1, y2, y3, y4, y5;
|
guint16 y0, y1, y2, y3, y4, y5;
|
||||||
guint16 u0, u1, u2;
|
guint16 u0, u1, u2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user