summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-25 18:10:40 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-26 13:16:57 +0200
commit6e9ce9ae37384a1b0073de432ee6209e5d47d52a (patch)
treeded3ad7857164694fad0e28fe862e23f8b7544ae /tests
parente790722a8403687ab329a7cdedfe828383379805 (diff)
tests: image: fix generation of I420/YV12 images.
U/V planes were reversed, thus producing invalid images.
Diffstat (limited to 'tests')
-rw-r--r--tests/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/image.c b/tests/image.c
index 4155d826..8d1ecc05 100644
--- a/tests/image.c
+++ b/tests/image.c
@@ -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;