]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mov: Do not try and seek to an mfra if the reader can't seek
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 1 Sep 2020 14:21:52 +0000 (15:21 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 3 Sep 2020 18:04:29 +0000 (19:04 +0100)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/mov.c

index f0b4edc2ede6ea615a165620a9fd2bcd00bba017..49c2d05d211203d931a70c1ced4185664d8e43a0 100644 (file)
@@ -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;