mirror of
https://github.com/videolan/vlc.git
synced 2024-11-24 10:23:27 +08:00
mux: mp4: check alloc return (cid #1346924)
This commit is contained in:
parent
64876b81b2
commit
ab45fefcb5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user