avformat/mov: Fix return type used for av_seek in mfra code

It should be a 64-bit integer, otherwise it overflows and fails
on files greater than 2GB on some systems like x86_64 Linux.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2020-09-01 15:15:28 +01:00
parent cfe2c90de0
commit 0c13f8a28c

View File

@ -5095,7 +5095,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) {
int ret;
int64_t ret;
int64_t original_pos = avio_tell(pb);
int32_t mfra_size;
if ((ret = avio_seek(pb, stream_size - 4, SEEK_SET)) < 0)