vo_gpu_next: respect tagged YUV colorspace

Fixes 2b2442ee67
This commit is contained in:
Niklas Haas 2021-11-22 14:40:11 +01:00
parent 2b2442ee67
commit 4ca6c2ff34
1 changed files with 2 additions and 1 deletions

View File

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