Commit ab45fefc authored by Francois Cartegnie's avatar Francois Cartegnie

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

parent 64876b81
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment