From 66ff2efbc793181e7130fdbf83067428ced97521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 20 Aug 2026 19:49:14 +0200 Subject: [PATCH] sub/sd_lavc: zero-initialize sub_bitmap entries --- sub/sd_lavc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 931c72efd5..03f0ab4b9c 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -229,7 +229,8 @@ static void read_sub_bitmaps(struct sd *sd, struct sub *sub) if (r->w <= 0 || r->h <= 0) continue; - b->bitmap = r; // save for later (dumb hack to avoid more complexity) + // save the rect for later (dumb hack to avoid more complexity) + *b = (struct sub_bitmap){ .bitmap = r }; priv->packer->in[sub->count] = (struct pos){r->w + (align - 1), r->h}; sub->count++;