mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 13:34:20 +01:00
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:
@@ -135,6 +135,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:
|
||||||
|
|||||||
Reference in New Issue
Block a user