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

Frédéric Yhuel git at videolan.org
Fri Sep 28 12:17:07 CEST 2012


vlc | branch: master | Frédéric Yhuel <yhuelf at gmail.com> | Fri Sep 28 12:05:22 2012 +0200| [33ecade21c2155a95d0d78c630dfeba96a610eb5] | committer: Ilkka Ollakka

demux/mp4: bug fix for files with 'moov' at the end

This fixes a bug introduced with the fragmented MP4 patch.

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

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

 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 );
 



More information about the vlc-commits mailing list