vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Tue Oct 21 16:14:58 2014 +0200| [66be1eaf1277cb9d0009393647b8bdf3e638d04a] | committer: Francois Cartegnie
demux: mp4: never match an empty fragment computing time offset > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66be1eaf1277cb9d0009393647b8bdf3e638d04a --- modules/demux/mp4/mp4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index cd5c70b..611e000 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -4311,7 +4311,9 @@ static mtime_t LeafGetFragmentTimeOffset( demux_t *p_demux, mp4_fragment_t *p_fr mp4_fragment_t *p_current = &p_demux->p_sys->moovfragment; while ( p_current != p_fragment ) { - i_base_scaledtime += p_current->i_duration; + if ( p_current != &p_demux->p_sys->moovfragment || + p_current->i_chunk_range_max_offset ) + i_base_scaledtime += p_current->i_duration; p_current = p_current->p_next; } return i_base_scaledtime; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits