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: e2365bfece
This commit is contained in:
1 parent
4ff9f50b6b
commit
6ea2cd72ec
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user