mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
f_swscale: let common code guess color levels when RGB->YUV
Probably doesn't matter anywhere.
This commit is contained in:
parent
28e4fe3010
commit
89329f44a4
@ -106,11 +106,11 @@ static void process(struct mp_filter *f)
|
||||
|
||||
mp_image_copy_attributes(dst, src);
|
||||
|
||||
// If we convert from RGB to YUV, default to limited range.
|
||||
// If we convert from RGB to YUV, guess a default.
|
||||
if (mp_imgfmt_get_forced_csp(src->imgfmt) == MP_CSP_RGB &&
|
||||
mp_imgfmt_get_forced_csp(dst->imgfmt) == MP_CSP_AUTO)
|
||||
{
|
||||
dst->params.color.levels = MP_CSP_LEVELS_TV;
|
||||
dst->params.color.levels = MP_CSP_LEVELS_AUTO;
|
||||
}
|
||||
if (s->use_out_params)
|
||||
dst->params = s->out_params;
|
||||
|
Loading…
Reference in New Issue
Block a user