avformat/argo_asf: Use 64bit in offset intermediate

Fixes: CID1467435 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a2b8d033
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment