[vlc-commits] demux: mp4: fix retrieving trun durations

Francois Cartegnie git at videolan.org
Mon Oct 27 18:07:07 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 27 17:28:49 2014 +0100| [5b998cb940aac8f78408c7d082b5752a5440d869] | committer: Francois Cartegnie

demux: mp4: fix retrieving trun durations

LeafDemuxer fixes (the experimental data-sequence driven
fragmented mp4 demux).

Some muxers are interleaving using single trun/fragments,
Moov()->Moov(A)->Moof(B)
instead of interlacing truns withing fragments.
Moov()->Moof(A,B)->Moof(A,B)
Example: BigBuckBunny ismv file

Another problem is that data isn't interleaved at all
at end of tracks, and there's a long trailing gap of
audio fragments only.
Moov()->Moov(A)->Moof(B)->Moof(B)->Moof(B)->Moof(B)

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

 modules/demux/mp4/mp4.c |  134 +++++++++++++++++++++++++++++++++++------------
 modules/demux/mp4/mp4.h |    9 +++-
 2 files changed, 108 insertions(+), 35 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=5b998cb940aac8f78408c7d082b5752a5440d869


More information about the vlc-commits mailing list