summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-04-07 16:11:01 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-04-07 16:12:51 +0200
commit84ce6f2a2b25e9ae615425add1e4ae4d2cf9b79c (patch)
tree32e9286c252078a075921a7761d90a6fdedcd8d0
parent2ff1558a87a9bd6fc745765ed016758b765b887a (diff)
videobox: Fix RGB24 filling
-rw-r--r--gst/videobox/gstvideobox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c
index 9b8830c80..ec10db8f3 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;
}