tests/wayland-test-clients: Fix YUV420 vertical subsampling factor

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3371>
This commit is contained in:
Sebastian Wick 2023-12-13 23:03:34 +01:00 committed by Marge Bot
parent 0930282baa
commit 005ede7702

View File

@ -932,7 +932,7 @@ wayland_buffer_shm_allocate (WaylandBuffer *buffer,
hsub[2] = 2; hsub[2] = 2;
vsub[0] = 1; vsub[0] = 1;
vsub[1] = 2; vsub[1] = 2;
hsub[2] = 2; vsub[2] = 2;
break; break;
default: default:
g_assert_not_reached (); g_assert_not_reached ();
@ -1166,7 +1166,7 @@ alloc_dmabuf_complex (WaylandBuffer *buffer,
hsub[2] = 2; hsub[2] = 2;
vsub[0] = 1; vsub[0] = 1;
vsub[1] = 2; vsub[1] = 2;
hsub[2] = 2; vsub[2] = 2;
break; break;
default: default:
return FALSE; return FALSE;