mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-10-02 22:28:40 +00: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:
parent
e9fbda8f75
commit
76352d3d6c
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ sc_display_to_sdl_color_space(enum AVColorSpace color_space,
|
|||
|
||||
switch (color_space) {
|
||||
case AVCOL_SPC_BT709:
|
||||
case AVCOL_SPC_RGB:
|
||||
return full_range ? SDL_COLORSPACE_BT709_FULL
|
||||
: SDL_COLORSPACE_BT709_LIMITED;
|
||||
case AVCOL_SPC_BT470BG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue