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:
Kacper Michajłow 2023-02-02 19:54:39 +01:00 committed by Leo Izen
parent cb9ba6cb26
commit 507d817f19
1 changed files with 0 additions and 6 deletions

View File

@ -106,12 +106,6 @@ static void process(struct mp_filter *f)
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)
dst->params = s->out_params;
mp_image_params_guess_csp(&dst->params);