aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorchcunningham <chcunningham@chromium.org>2019-02-06 16:12:51 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2019-02-08 12:00:59 +0100
commit3ea87e5d9ea075d5b3c0f4f8c6c48e514b454cbe (patch)
treee04419672d41d6512e793baa40ecea14511ed268 /libavformat/isom.h
parent7cab5471b231bcdb593bf4ec96a263f935df30b1 (diff)
downloadffmpeg-3ea87e5d9ea075d5b3c0f4f8c6c48e514b454cbe.tar.gz
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>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index e629663949..69452cae8e 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -87,6 +87,7 @@ typedef struct MOVAtom {
struct MOVParseTableEntry;
typedef struct MOVFragment {
+ int found_tfhd;
unsigned track_id;
uint64_t base_data_offset;
uint64_t moof_offset;