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

demux: mp4: fix regression with false frag discontinuities

parent 6911ebd6
......@@ -5100,6 +5100,10 @@ static void LeafCheckandSetMOOFOffset( demux_t *p_demux, MP4_Box_t *p_vroot, MP4
{
demux_sys_t *p_sys = p_demux->p_sys;
/* Only on start of moof parsing */
if( p_sys->context.i_mdatbytesleft != 0 )
return;
MP4_Box_t *p_mfhd = MP4_BoxGet( p_moof, "mfhd" );
if( p_mfhd && BOXDATA(p_mfhd) )
{
......
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