Commit 486121cf authored by Francois Cartegnie's avatar Francois Cartegnie

demux: smooth: fix null dereference (cid #1346951)

parent 1a117d26
...@@ -283,6 +283,9 @@ block_t * ForgedInitSegment::buildMoovBox() ...@@ -283,6 +283,9 @@ block_t * ForgedInitSegment::buildMoovBox()
free(box); free(box);
} }
if(!moov)
return NULL;
vlc_fourcc_t extra[] = {MAJOR_isom, VLC_FOURCC('p','i','f','f'), VLC_FOURCC('i','s','o','2'), VLC_FOURCC('s','m','o','o')}; vlc_fourcc_t extra[] = {MAJOR_isom, VLC_FOURCC('p','i','f','f'), VLC_FOURCC('i','s','o','2'), VLC_FOURCC('s','m','o','o')};
box = GetFtyp(VLC_FOURCC('i','s','m','l'), 1, extra, ARRAY_SIZE(extra)); box = GetFtyp(VLC_FOURCC('i','s','m','l'), 1, extra, ARRAY_SIZE(extra));
......
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