projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef6c16a
)
videobox: fix border filling for planar YUV formats
author
Tim-Philipp Müller
<tim@centricular.net>
Sat, 24 Nov 2012 19:32:51 +0000
(19:32 +0000)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sat, 24 Nov 2012 19:32:51 +0000
(19:32 +0000)
We would get a green border instead of a black one, for
example.
https://bugzilla.gnome.org/show_bug.cgi?id=684991
gst/videobox/gstvideobox.c
patch
|
blob
|
history
diff --git
a/gst/videobox/gstvideobox.c
b/gst/videobox/gstvideobox.c
index 553b58db3d56faef3096898d69fc06f40b72f518..de70b1b16639b80e7a29292b9b44648f47f801fc 100644
(file)
--- a/
gst/videobox/gstvideobox.c
+++ b/
gst/videobox/gstvideobox.c
@@
-695,7
+695,7
@@
fill_planar_yuv (GstVideoBoxFill fill_type, guint b_alpha,
memset (destU, empty_pixel[1], strideU * heightU);
} else if (heightU) {
for (; heightU; --heightU) {
- memset (destU, empty_pixel[
0], widthY
);
+ memset (destU, empty_pixel[
1], widthU
);
destU += strideU;
}
}
@@
-703,7
+703,7
@@
fill_planar_yuv (GstVideoBoxFill fill_type, guint b_alpha,
memset (destV, empty_pixel[2], strideV * heightV);
} else if (heightV) {
for (; heightV; --heightV) {
- memset (destV, empty_pixel[
0
], widthV);
+ memset (destV, empty_pixel[
2
], widthV);
destV += strideV;
}
}