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:
Romain Vimont
2025-07-10 23:07:45 +02:00
parent 1917f1c427
commit 5d3a0e14c3
3 changed files with 29 additions and 10 deletions

View File

@@ -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;
}