summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-09-10 10:56:29 +0200
committerBenjamin Otte <otte@gnome.org>2009-09-10 10:56:29 +0200
commit8939bc6c82f4143b776d76679266b0568d020c34 (patch)
tree8479617fbe01cb958635239dca91ae6904e374f1
parent7ed2531b2781d74055bda5823a296bda2b2dd439 (diff)
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
-rw-r--r--gst/ffmpegcolorspace/imgconvert.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/ffmpegcolorspace/imgconvert.c b/gst/ffmpegcolorspace/imgconvert.c
index 8863063b7..5577ea6ee 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 */