projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed2531
)
ffmpegcolorspace: Handle YVU9/YUV9 conversion with odd widths
author
Benjamin Otte
<otte@gnome.org>
Thu, 10 Sep 2009 08:56:29 +0000
(10:56 +0200)
committer
Benjamin Otte
<otte@gnome.org>
Thu, 10 Sep 2009 08:56:29 +0000
(10:56 +0200)
A green border could be visible when converting to Y444 or RGB, because
the last chroma samples weren't copied correctly
gst/ffmpegcolorspace/imgconvert.c
patch
|
blob
|
history
diff --git
a/gst/ffmpegcolorspace/imgconvert.c
b/gst/ffmpegcolorspace/imgconvert.c
index 8863063b729fb9fe00e11e2f5fe12fd8dbe3e804..5577ea6ee43141a3d2676dcad221e4f6a1917555 100644
(file)
--- 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 */