Fix SDL colorspace matching AVCOL_SPC_RGB

Use BT.709 color space for AVCOL_SPC_RGB.

Refs #1868 comment <https://github.com/Genymobile/scrcpy/issues/1868#issuecomment-3293917796>

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
dddddjent 2025-09-15 11:13:06 -04:00 committed by Romain Vimont
commit 76352d3d6c

View file

@ -131,6 +131,7 @@ sc_display_to_sdl_color_space(enum AVColorSpace color_space,
switch (color_space) { switch (color_space) {
case AVCOL_SPC_BT709: case AVCOL_SPC_BT709:
case AVCOL_SPC_RGB:
return full_range ? SDL_COLORSPACE_BT709_FULL return full_range ? SDL_COLORSPACE_BT709_FULL
: SDL_COLORSPACE_BT709_LIMITED; : SDL_COLORSPACE_BT709_LIMITED;
case AVCOL_SPC_BT470BG: case AVCOL_SPC_BT470BG: