[vlc-commits] MP4 demux: only set fragmented flag if filecontains movie fragment atoms.

Matthias Keiser git at videolan.org
Fri Mar 7 23:30:47 CET 2014


vlc | branch: master | Matthias Keiser <matthias at tristan-inc.com> | Fri Mar  7 23:16:31 2014 +0100| [c5589809d90f464afbf9383cfaa1dad140d5c9cf] | committer: Jean-Baptiste Kempf

MP4 demux: only set fragmented flag if filecontains movie fragment atoms.

Removing the comment, because:

1) It's probably wrong
2) It hasn't anything to do with movie rotation anyway

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/mp4/mp4.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 4c6b680..137763a 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -361,7 +361,8 @@ static int Open( vlc_object_t * p_this )
     if( LoadInitFrag( p_demux, b_smooth ) != VLC_SUCCESS )
         goto error;
 
-    if( MP4_BoxCount( p_sys->p_root, "/moov/mvex" ) > 0 )
+    if( MP4_BoxCount( p_sys->p_root, "/moov/mvex" ) > 0 &&
+        MP4_BoxCount( p_sys->p_root, "/moof" ) > 0 )
     {
         p_sys->b_fragmented = true;
     }



More information about the vlc-commits mailing list