mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
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:
@@ -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