mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
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:
parent
a2b8d03347
commit
d9d1f65308
@ -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…
Reference in New Issue
Block a user