From 836eb29ed7ebe7ee3508d44bdf55caa55e6d552e Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 2 Oct 2024 14:24:34 +0200 Subject: [PATCH] vdisp/sdl2: handle --param color-601 --- src/video_display/sdl2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video_display/sdl2.c b/src/video_display/sdl2.c index 772d4caf6..3051af381 100644 --- a/src/video_display/sdl2.c +++ b/src/video_display/sdl2.c @@ -723,6 +723,9 @@ static void *display_sdl2_init(struct module *parent, const char *fmt, unsigned driver = "KMSDRM"; } #endif // defined __linux__ + if (get_commandline_param("color-601") != NULL) { + SDL_SetYUVConversionMode(SDL_YUV_CONVERSION_BT601); + } if (SDL_VideoInit(driver) < 0) { MSG(ERROR, "Unable to initialize SDL2 video: %s\n",