diff options
author | Niklas Haas <git@haasn.dev> | 2021-11-22 14:40:11 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-11-22 14:40:11 +0100 |
commit | 4ca6c2ff342cf40c8ff7fc5271df357465098942 (patch) | |
tree | f7fff0de4eb2518e511da9920305838c48b59dba /video/out | |
parent | 2b2442ee67913221e5c87cbc06010671e1b41c15 (diff) | |
download | mpv-4ca6c2ff342cf40c8ff7fc5271df357465098942.tar.bz2 mpv-4ca6c2ff342cf40c8ff7fc5271df357465098942.tar.xz |
vo_gpu_next: respect tagged YUV colorspace
Fixes 2b2442ee67913221e5c87cbc06010671e1b41c15
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index ca19a612ea..e5b1f5b6a7 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -429,7 +429,8 @@ static bool map_frame(pl_gpu gpu, pl_tex *tex, const struct pl_source_frame *src frame->repr.sys = PL_COLOR_SYSTEM_XYZ; break; case MP_CSP_AUTO: - frame->repr.sys = pl_color_system_guess_ycbcr(par->w, par->h); + if (!frame->repr.sys) + frame->repr.sys = pl_color_system_guess_ycbcr(par->w, par->h); break; default: break; } |