diff options
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index b809dae765..fbe536dafe 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -852,6 +852,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->primaries_orig || !params->transfer_orig || !params->sys_orig) + return; params->color.primaries = params->primaries_orig; params->color.transfer = params->transfer_orig; params->repr.sys = params->sys_orig; |