[FFmpeg-cvslog] avformat/mov: Do not try and seek to an mfra if the reader can't seek
Derek Buitenhuis
git at videolan.org
Thu Sep 3 21:37:38 EEST 2020
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Sep 1 15:21:52 2020 +0100| [19064a36e39a113568cb4ea2d581747fd43e055a] | committer: Derek Buitenhuis
avformat/mov: Do not try and seek to an mfra if the reader can't seek
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19064a36e39a113568cb4ea2d581747fd43e055a
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list