Skip to content

Commit

Permalink
vdisp/sdl2: handle --param color-601
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Oct 2, 2024
1 parent 8f06370 commit 295c3c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video_display/sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 295c3c7

Please sign in to comment.