From 005ede7702c4402397f4bf53349d18ddcc7b03ca Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Wed, 13 Dec 2023 23:03:34 +0100 Subject: [PATCH] tests/wayland-test-clients: Fix YUV420 vertical subsampling factor Part-of: --- src/tests/wayland-test-clients/wayland-test-client-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/wayland-test-clients/wayland-test-client-utils.c b/src/tests/wayland-test-clients/wayland-test-client-utils.c index 132e8d956..23f569337 100644 --- a/src/tests/wayland-test-clients/wayland-test-client-utils.c +++ b/src/tests/wayland-test-clients/wayland-test-client-utils.c @@ -932,7 +932,7 @@ wayland_buffer_shm_allocate (WaylandBuffer *buffer, hsub[2] = 2; vsub[0] = 1; vsub[1] = 2; - hsub[2] = 2; + vsub[2] = 2; break; default: g_assert_not_reached (); @@ -1166,7 +1166,7 @@ alloc_dmabuf_complex (WaylandBuffer *buffer, hsub[2] = 2; vsub[0] = 1; vsub[1] = 2; - hsub[2] = 2; + vsub[2] = 2; break; default: return FALSE;