mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
colorspace: Fix out-of-bound errors for v210
This commit is contained in:
parent
e2e6fdcb6b
commit
3b8b87cb6c
1 changed files with 2 additions and 2 deletions
|
@ -412,7 +412,7 @@ putline_v210 (ColorspaceConvert * convert, guint8 * 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;
|
||||||
|
@ -518,7 +518,7 @@ putline16_v210 (ColorspaceConvert * convert, guint8 * dest, const guint16 * 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;
|
||||||
|
|
Loading…
Reference in a new issue