mirror of https://github.com/mpv-player/mpv
f_swscale: do not reset color levels to default
There is no good reason to do so, both zimg and swscale supports full range output. If downstream something expects limited range yuv always, it needs to be comunicated in different way.
This commit is contained in:
parent
cb9ba6cb26
commit
507d817f19
|
@ -106,12 +106,6 @@ static void process(struct mp_filter *f)
|
||||||
|
|
||||||
mp_image_copy_attributes(dst, src);
|
mp_image_copy_attributes(dst, src);
|
||||||
|
|
||||||
// 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_AUTO;
|
|
||||||
}
|
|
||||||
if (s->use_out_params)
|
if (s->use_out_params)
|
||||||
dst->params = s->out_params;
|
dst->params = s->out_params;
|
||||||
mp_image_params_guess_csp(&dst->params);
|
mp_image_params_guess_csp(&dst->params);
|
||||||
|
|
Loading…
Reference in New Issue