From: Benjamin Otte Date: Thu, 10 Sep 2009 08:56:29 +0000 (+0200) Subject: ffmpegcolorspace: Handle YVU9/YUV9 conversion with odd widths X-Git-Tag: 1.19.3~511^2~9205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8939bc6c82f4143b776d76679266b0568d020c34;p=platform%2Fupstream%2Fgstreamer.git ffmpegcolorspace: Handle YVU9/YUV9 conversion with odd widths A green border could be visible when converting to Y444 or RGB, because the last chroma samples weren't copied correctly --- diff --git a/gst/ffmpegcolorspace/imgconvert.c b/gst/ffmpegcolorspace/imgconvert.c index 8863063..5577ea6 100644 --- a/gst/ffmpegcolorspace/imgconvert.c +++ b/gst/ffmpegcolorspace/imgconvert.c @@ -1867,6 +1867,10 @@ grow41_line (uint8_t * dst, const uint8_t * src, int width) s1++; d += 4; } + for (; w >= 0; w--) { + d[0] = s1[0]; + d++; + } } /* 1x1 -> 2x1 */