Commit 84ce6f2a authored by Sebastian Dröge's avatar Sebastian Dröge

videobox: Fix RGB24 filling

parent 2ff1558a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment