mux: mp4: check alloc return (cid #1346924)

This commit is contained in:
Francois Cartegnie 2015-12-31 18:56:59 +01:00
parent 64876b81b2
commit ab45fefcb5

View File

@ -80,7 +80,11 @@ bo_t *box_new(const char *fcc)
if (!box)
return NULL;
bo_init(box, 1024);
if(!bo_init(box, 1024))
{
bo_free(box);
return NULL;
}
bo_add_32be (box, 0);
bo_add_fourcc(box, fcc);