diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-11-24 19:32:51 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-11-24 19:32:51 +0000 |
commit | efaa80fbc6700e2f02cbac3a5f8b66e24cdab934 (patch) | |
tree | 1abc73425b669022c13ad6f6e03a142eaadced51 /gst/videobox | |
parent | ef6c16a32e6e4c00256728f5936d16353c65d7f7 (diff) | |
download | gstreamer-plugins-good-efaa80fbc6700e2f02cbac3a5f8b66e24cdab934.tar.gz |
videobox: fix border filling for planar YUV formats
We would get a green border instead of a black one, for
example.
https://bugzilla.gnome.org/show_bug.cgi?id=684991
Diffstat (limited to 'gst/videobox')
-rw-r--r-- | gst/videobox/gstvideobox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 553b58db3..de70b1b16 100644 --- 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; } } |