[vlc-devel] [PATCH] demux/mp4: bug fix for files with 'moov' at the end

Frédéric Yhuel yhuelf at gmail.com
Fri Sep 28 12:05:22 CEST 2012


This fixes a bug introduced with the fragmented MP4 patch.
---
 modules/demux/mp4/libmp4.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 1fd580b..838b0f9 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3610,6 +3610,7 @@ MP4_Box_t *MP4_BoxGetRoot( stream_t *s )
         return p_root;
 
     p_root->i_size = stream_Size( s );
+    stream_Seek( p_stream, 0 );
     /* Get the rest of the file */
     i_result = MP4_ReadBoxContainerRaw( p_stream, p_root );
 
-- 
1.7.9.5



More information about the vlc-devel mailing list