sub/sd_lavc: zero-initialize sub_bitmap entries

This commit is contained in:
Kacper Michajłow
2026-08-23 18:09:02 +02:00
parent 345e783643
commit 66ff2efbc7
+2 -1
View File
@@ -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++;