diff --git a/video/mp_image.c b/video/mp_image.c index f770470dd1..e6aca6dc0a 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -855,6 +855,8 @@ bool mp_image_params_static_equal(const struct mp_image_params *p1, // before dovi mapping. void mp_image_params_restore_dovi_mapping(struct mp_image_params *params) { + if (params->repr.sys != PL_COLOR_SYSTEM_DOLBYVISION) + return; params->color.primaries = params->primaries_orig; params->color.transfer = params->transfer_orig; params->repr.sys = params->sys_orig;