1
0

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>
This commit is contained in:
Michael Niedermayer 2024-05-23 02:12:09 +02:00
parent a2b8d03347
commit d9d1f65308
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -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;