From 84ce6f2a2b25e9ae615425add1e4ae4d2cf9b79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 7 Apr 2010 16:11:01 +0200 Subject: [PATCH] videobox: Fix RGB24 filling --- gst/videobox/gstvideobox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 9b8830c806..ec10db8f3b 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -804,9 +804,9 @@ fill_rgb24 (GstVideoBoxFill fill_type, guint b_alpha, GstVideoFormat format, for (i = 0; i < height; i++) { for (j = 0; j < width; j++) { - dest[3 * j + p[0]] = rgb_colors_R[fill_type]; - dest[3 * j + p[1]] = rgb_colors_G[fill_type]; - dest[3 * j + p[2]] = rgb_colors_B[fill_type]; + dest[3 * j + p[1]] = rgb_colors_R[fill_type]; + dest[3 * j + p[2]] = rgb_colors_G[fill_type]; + dest[3 * j + p[3]] = rgb_colors_B[fill_type]; } dest += dest_stride; }