diff options
author | Jacob Trimble <modmaker-at-google.com@ffmpeg.org> | 2018-04-04 12:30:56 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-04-05 20:10:24 +0200 |
commit | b08c132a9c590cf5c3905a48b12527765fc91647 (patch) | |
tree | dc3cf1482ba3df36fe9d7d7bc577eb97fa1602a8 | |
parent | a2356e509184d79ba477ce774bb7be8b6b66f692 (diff) | |
download | ffmpeg-b08c132a9c590cf5c3905a48b12527765fc91647.tar.gz |
avformat/mov: Fix parsing of tfdt when using sample descriptors.
Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index e7c32e6148..97b1462aab 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4601,7 +4601,7 @@ static int mov_read_tfdt(MOVContext *c, AVIOContext *pb, MOVAtom atom) return AVERROR_INVALIDDATA; } sc = st->priv_data; - if (sc->pseudo_stream_id + 1 != frag->stsd_id) + if (sc->pseudo_stream_id + 1 != frag->stsd_id && sc->pseudo_stream_id != -1) return 0; version = avio_r8(pb); avio_rb24(pb); /* flags */ |