mov: fix decode of fragments that overlap in time
authorJohn Stebbins <jstebbins@jetheaddev.com>
Thu, 12 Oct 2017 17:59:23 +0000 (10:59 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 23 Oct 2017 10:41:04 +0000 (12:41 +0200)
commit4a9d32baca3af0d1831f9556a922c7ab5b426b10
tree6e812cf4905d1da7b169878dd4611046428a6b10
parent2b320318273b74df6e1b712fb33544d6a1b26be1
mov: fix decode of fragments that overlap in time

When keyframe intervals of dash segments are not perfectly aligned,
fragments in the stream can overlap in time. The previous sorting by
timestamp causes packets to be read out of decode order and results
in decode errors.

Insert new "trun" index entries into index_entries in the order that
the trun are referenced by the sidx.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/isom.h
libavformat/mov.c