[vlc-commits] demux: mp4: set as fragmented if sidx

Francois Cartegnie git at videolan.org
Wed May 3 14:54:25 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May  2 14:59:17 2017 +0200| [16f82c571e4aace5bd6e6542be4986f7e14a4da7] | committer: Francois Cartegnie

demux: mp4: set as fragmented if sidx

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16f82c571e4aace5bd6e6542be4986f7e14a4da7
---

 modules/demux/mp4/mp4.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index f64042cf57..852659176a 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -980,6 +980,10 @@ static int Open( vlc_object_t * p_this )
             }
         }
 
+        const MP4_Box_t *p_sidx = MP4_BoxGet( p_sys->p_root, "sidx");
+        if( p_sidx )
+            p_sys->b_fragmented = true;
+
         if ( p_sys->b_seekable )
         {
             if( !p_sys->b_fragmented /* as unknown */ )



More information about the vlc-commits mailing list