avformat/mov.c: require tfhd to begin parsing trun
authorchcunningham <chcunningham@chromium.org>
Thu, 7 Feb 2019 00:12:51 +0000 (16:12 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Feb 2019 11:00:59 +0000 (12:00 +0100)
commit3ea87e5d9ea075d5b3c0f4f8c6c48e514b454cbe
treee04419672d41d6512e793baa40ecea14511ed268
parent7cab5471b231bcdb593bf4ec96a263f935df30b1
avformat/mov.c: require tfhd to begin parsing trun

Detecting missing tfhd avoids re-using tfhd track info from the previous
moof. For files with multiple tracks, this may make a mess of the
avindex and fragindex, which can later trigger av_assert0 in
mov_read_trun().

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/isom.h
libavformat/mov.c