diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2020-09-01 15:21:52 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2020-09-03 19:04:29 +0100 |
commit | 19064a36e39a113568cb4ea2d581747fd43e055a (patch) | |
tree | 0f5b7e560431b9ecfc47569b201d4b19952ec4b8 /libavformat | |
parent | 0c13f8a28c155a0a29667c4c5f0102abc6063416 (diff) | |
download | ffmpeg-19064a36e39a113568cb4ea2d581747fd43e055a.tar.gz |
avformat/mov: Do not try and seek to an mfra if the reader can't seek
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat')
-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 f0b4edc2ed..49c2d05d21 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5094,7 +5094,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) // See if the remaining bytes are just an mfra which we can ignore. is_complete = offset == stream_size; - if (!is_complete) { + if (!is_complete && (pb->seekable & AVIO_SEEKABLE_NORMAL)) { int64_t ret; int64_t original_pos = avio_tell(pb); int32_t mfra_size; |