Skip to content

Commit

Permalink
vf_format: fix format=dolbyvision=no metadata stripping
Browse files Browse the repository at this point in the history
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: e2365bf
  • Loading branch information
kasper93 committed Nov 28, 2024
1 parent 4ff9f50 commit e129d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video/filter/vf_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e129d93

Please sign in to comment.