From 0be060ed76a9b8ec6ecf6660fb0a5a00812fcd86 Mon Sep 17 00:00:00 2001 From: llyyr Date: Wed, 13 May 2026 02:48:07 +0530 Subject: [PATCH] wayland: fix mapping for PAL/NTSC primaries 525 lines is NTSC, 625 lines is PAL. Previously we had them reversed. --- video/out/wayland_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index bfe5d33d67..7f6dc2a123 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2094,8 +2094,8 @@ static void supported_tf_named(void *data, struct wp_color_manager_v1 *color_man static enum pl_color_primaries map_primaries(uint32_t primaries) { switch (primaries) { - case WP_COLOR_MANAGER_V1_PRIMARIES_PAL: return PL_COLOR_PRIM_BT_601_525; - case WP_COLOR_MANAGER_V1_PRIMARIES_NTSC: return PL_COLOR_PRIM_BT_601_625; + case WP_COLOR_MANAGER_V1_PRIMARIES_PAL: return PL_COLOR_PRIM_BT_601_625; + case WP_COLOR_MANAGER_V1_PRIMARIES_NTSC: return PL_COLOR_PRIM_BT_601_525; case WP_COLOR_MANAGER_V1_PRIMARIES_SRGB: return PL_COLOR_PRIM_BT_709; case WP_COLOR_MANAGER_V1_PRIMARIES_PAL_M: return PL_COLOR_PRIM_BT_470M; case WP_COLOR_MANAGER_V1_PRIMARIES_BT2020: return PL_COLOR_PRIM_BT_2020;