[vlc-devel] [PATCH] libmp4: rewind stream before falling back to avformat

Frédéric Yhuel yhuelf at gmail.com
Sun Jan 20 22:15:02 CET 2013


---
 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 9f467a0..8979691 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3609,6 +3609,7 @@ MP4_Box_t *MP4_BoxGetRoot( stream_t *s )
 
 error:
     free( p_root );
+    stream_Seek( p_stream, 0 );
     return NULL;
 }
 
-- 
1.7.10.4



More information about the vlc-devel mailing list