vlc | branch: master | Frédéric Yhuel <[email protected]> | Sun Jan 27 23:02:57 2013 +0100| [85c03f04e5a01f19987b6d2d5bf671f915a4c18b] | committer: Jean-Baptiste Kempf
libmp4: small bug fix When MP4_ReadBoxContainerChildren() returns, one expects the position in the stream to be that of the next box after the last parsed box. Without this very patch, if the last parsed box is an "unknown" one, the position in the stream would be at the begining of that box, preventing playback of latest Anevia's MS Smooth Streaming live streams, for example. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85c03f04e5a01f19987b6d2d5bf671f915a4c18b --- modules/demux/mp4/libmp4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c index bcd0df8..a5cb74f 100644 --- a/modules/demux/mp4/libmp4.c +++ b/modules/demux/mp4/libmp4.c @@ -215,7 +215,10 @@ static int MP4_ReadBoxContainerChildren( stream_t *p_stream, p_container->p_last = p_box; if( p_box->i_type == i_last_child ) + { + MP4_NextBox( p_stream, p_box ); break; + } } while( MP4_NextBox( p_stream, p_box ) == 1 ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
