sub/sd_lavc: zero-initialize sub_bitmap entries

This commit is contained in:
Kacper Michajłow committed 2026-08-23 18:09:02 +02:00
1 parent 345e783643
commit 66ff2efbc7
1 file changed
+2 -1
+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) if (r->w <= 0 || r->h <= 0)
continue; 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}; priv->packer->in[sub->count] = (struct pos){r->w + (align - 1), r->h};
sub->count++; sub->count++;