[vlc-commits] demux: mp4: sizeless container root check
    Francois Cartegnie 
    git at videolan.org
       
    Tue May  5 20:36:03 CEST 2015
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May  5 16:31:13 2015 +0200| [a55c3005ccb8bc1169ab68cf80f6220a4c8992ff] | committer: Francois Cartegnie
demux: mp4: sizeless container root check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a55c3005ccb8bc1169ab68cf80f6220a4c8992ff
---
 modules/demux/mp4/libmp4.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index dd30d3b..c021e22 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -235,7 +235,7 @@ static int MP4_ReadBoxContainerChildrenIndexed( stream_t *p_stream,
 
     /* Size of root container is set to 0 when unknown, for exemple
      * 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) >
         (off_t)(p_container->i_pos + p_container->i_size) )
       )
    
    
More information about the vlc-commits
mailing list