mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
videobox: Fix RGB24 filling
This commit is contained in:
parent
2ff1558a87
commit
84ce6f2a2b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue