Commit a55c3005 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: sizeless container root check

parent e73ab63e
...@@ -235,7 +235,7 @@ static int MP4_ReadBoxContainerChildrenIndexed( stream_t *p_stream, ...@@ -235,7 +235,7 @@ static int MP4_ReadBoxContainerChildrenIndexed( stream_t *p_stream,
/* Size of root container is set to 0 when unknown, for exemple /* Size of root container is set to 0 when unknown, for exemple
* with a DASH stream. In that case, we skip the following check */ * with a DASH stream. In that case, we skip the following check */
if( p_container->i_size if( (p_container->i_size || p_container->p_father)
&& ( stream_Tell( p_stream ) + ((b_indexed)?16:8) > && ( stream_Tell( p_stream ) + ((b_indexed)?16:8) >
(off_t)(p_container->i_pos + p_container->i_size) ) (off_t)(p_container->i_pos + p_container->i_size) )
) )
......
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