avformat/argo_asf: Use 64bit in offset intermediate

Fixes: CID1467435 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.1
Michael Niedermayer 7 months ago
parent a2b8d03347
commit d9d1f65308
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavformat/argo_asf.c

@ -259,7 +259,7 @@ static int argo_asf_seek(AVFormatContext *s, int stream_index,
return -1;
offset = asf->fhdr.chunk_offset + ASF_CHUNK_HEADER_SIZE +
(block * st->codecpar->block_align);
block * (int64_t)st->codecpar->block_align;
if ((offset = avio_seek(s->pb, offset, SEEK_SET)) < 0)
return offset;

Loading…
Cancel
Save