mirror of https://github.com/mpv-player/mpv
mp_image: only restore params when image is dolbyvision
Should be no need to do so otherwise.
This commit is contained in:
parent
9b571a7aa7
commit
e35a559ce1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue