diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 553b58db3d..de70b1b166 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; } }