Commit 25495868 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: don't start without hevc extradata

parent bf6b8dfa
......@@ -355,7 +355,7 @@ int SetupVideoES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
{
MP4_Box_t *p_hvcC = MP4_BoxGet( p_sample, "hvcC" );
if( p_hvcC && p_hvcC->data.p_binary )
if( p_hvcC && p_hvcC->data.p_binary && p_hvcC->data.p_binary->i_blob )
{
p_track->fmt.p_extra = malloc( p_hvcC->data.p_binary->i_blob );
if( p_track->fmt.p_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