vo_dmabuf_wayland: ensure target params consistency

This commit is contained in:
Kacper Michajłow committed 2026-01-24 14:08:08 +01:00
1 parent ed83c7c51e
commit 9dd598def8
1 file changed
+1
+1
View File
@@ -743,6 +743,7 @@ done:
p->target_params = img->params;
// Restore fallback layer parameters if available.
mp_image_params_restore_dovi_mapping(&p->target_params);
mp_image_params_guess_csp(&p->target_params);
// Strip metadata that is not understood anyway.
struct pl_hdr_metadata *hdr = &p->target_params.color.hdr;
hdr->scene_max[0] = hdr->scene_max[1] = hdr->scene_max[2] = 0;