mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-27 16:55:05 +00:00
ffmpegcolorspace: Fix conversion of packed 4:2:2 YUV to 8 bit grayscale
The last pixel wasn't written before for odd widths. Fixes bug #623418.
This commit is contained in:
parent
9c9f97251a
commit
263201d9e7
|
@ -893,6 +893,10 @@ uyvy422_to_gray (AVPicture * dst, const AVPicture * src, int width, int height)
|
||||||
p += 4;
|
p += 4;
|
||||||
lum += 2;
|
lum += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w)
|
||||||
|
lum[0] = p[1];
|
||||||
|
|
||||||
p1 += src->linesize[0];
|
p1 += src->linesize[0];
|
||||||
lum1 += dst->linesize[0];
|
lum1 += dst->linesize[0];
|
||||||
}
|
}
|
||||||
|
@ -1014,6 +1018,10 @@ yvyu422_to_gray (AVPicture * dst, const AVPicture * src, int width, int height)
|
||||||
p += 4;
|
p += 4;
|
||||||
lum += 2;
|
lum += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w)
|
||||||
|
lum[0] = p[0];
|
||||||
|
|
||||||
p1 += src->linesize[0];
|
p1 += src->linesize[0];
|
||||||
lum1 += dst->linesize[0];
|
lum1 += dst->linesize[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue