mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 14:04:20 +01:00
Improve color space conversion
Use both the color space and color range from FFmpeg to determine the appropriate SDL YUV conversion mode.
This commit is contained in:
@@ -620,7 +620,7 @@ sc_screen_apply_frame(struct sc_screen *screen) {
|
||||
|
||||
enum sc_display_result res =
|
||||
sc_display_prepare_texture(&screen->display, screen->frame_size,
|
||||
frame->color_range);
|
||||
frame->colorspace, frame->color_range);
|
||||
if (res == SC_DISPLAY_RESULT_ERROR) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user