diff options
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf_format.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c index c0ec11d0b8..4997d6f173 100644 --- a/video/filter/vf_format.c +++ b/video/filter/vf_format.c @@ -77,14 +77,12 @@ static void set_params(struct vf_format_opts *p, struct mp_image_params *out, // When changing the gamma function explicitly, also reset stuff // related to the gamma function since that information will almost // surely be false now and have to be re-inferred - out->color.sig_peak = 0.0; + out->color.hdr = (struct pl_hdr_metadata){0}; out->color.light = MP_CSP_LIGHT_AUTO; } } - if (p->sig_peak) { - out->color.sig_peak = p->sig_peak; - out->color.hdr.max_cll = p->sig_peak; - } + if (p->sig_peak) + out->color.hdr = (struct pl_hdr_metadata){ .max_luma = p->sig_peak * MP_REF_WHITE }; if (p->light) out->color.light = p->light; if (p->chroma_location) |