From: Sebastian Dröge Date: Fri, 26 Mar 2010 12:45:46 +0000 (+0100) Subject: videobox: Fix AYUV->I420 frame copying X-Git-Tag: RELEASE-0.10.22~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2873c3ad6bb0e984cf8a9fd119ad98a3e8c1cc25;p=platform%2Fupstream%2Fgst-plugins-good.git videobox: Fix AYUV->I420 frame copying --- diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 671eb73..8535415 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -222,10 +222,10 @@ copy_ayuv_i420 (guint i_alpha, guint8 * dest, gboolean dest_sdtv, src = src + src_y * src_width * 4 + src_x * 4; widthY = w; - widthUV = (w + 1) / 2; + widthUV = w / 2; hY = h; - hUV = (h + 1) / 2; + hUV = h / 2; if (src_sdtv != dest_sdtv) { gint matrix[12];