From 6ea2cd72ecfa3fee749c7af670b0a09ebd707b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 28 Nov 2024 16:56:49 +0100 Subject: [PATCH] vf_format: fix format=dolbyvision=no metadata stripping If p->colormatrix is 0 if not set by user, so it would always override _orig parameters with Dolby Vision ones and restore that erroneously. Fixes: e2365bfeceeef8939d159780b607698d05073910 --- video/filter/vf_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c index f73e926d99..aad73a2c24 100644 --- a/video/filter/vf_format.c +++ b/video/filter/vf_format.c @@ -84,7 +84,7 @@ static void set_params(struct vf_format_opts *p, struct mp_image_params *out, out->light = MP_CSP_LIGHT_AUTO; } } - if (p->colormatrix != PL_COLOR_SYSTEM_DOLBYVISION && !p->dovi) { + if (out->repr.sys != PL_COLOR_SYSTEM_DOLBYVISION) { out->primaries_orig = out->color.primaries; out->transfer_orig = out->color.transfer; out->sys_orig = out->repr.sys;