mp_image: only restore params when image is dolbyvision

Should be no need to do so otherwise.
This commit is contained in:
nanahi 2024-10-01 00:48:03 -04:00 committed by Kacper Michajłow
parent 9b571a7aa7
commit e35a559ce1
1 changed files with 2 additions and 0 deletions

View File

@ -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;