mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
tests: image: fix generation of I420/YV12 images.
U/V planes were reversed, thus producing invalid images.
This commit is contained in:
parent
e790722a84
commit
6e9ce9ae37
1 changed files with 2 additions and 2 deletions
|
@ -188,8 +188,8 @@ static void draw_rect_YV12( // Y, V, U planes
|
|||
width /= 2;
|
||||
height /= 2;
|
||||
|
||||
pU = pixels[1] + y * stride[1] + x;
|
||||
pV = pixels[2] + y * stride[2] + x;
|
||||
pV = pixels[1] + y * stride[1] + x;
|
||||
pU = pixels[2] + y * stride[2] + x;
|
||||
for (j = 0; j < height; j++, pU += stride[1], pV += stride[2])
|
||||
for (i = 0; i < width; i++) {
|
||||
pU[i] = Cb;
|
||||
|
|
Loading…
Reference in a new issue