Skip to content

Commit

Permalink
avformat/mov: Do not try and seek to an mfra if the reader can't seek
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Buitenhuis <[email protected]>
  • Loading branch information
dwbuiten committed Sep 3, 2020
1 parent 0c13f8a commit 19064a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/mov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19064a3

Please sign in to comment.