libavformat/xwma: fix overflow in seek position

Fixes: signed integer overflow

Found-by: Marius Momeu <marius.momeu@berkeley.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2d4ec46345)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2026-05-02 12:57:48 +02:00
parent a3779c8d75
commit 5de49f09d8
+1 -1
View File
@@ -267,7 +267,7 @@ static int xwma_read_header(AVFormatContext *s)
* an offset / timestamp pair.
*/
av_add_index_entry(st,
cur_pos + (i+1) * st->codecpar->block_align, /* pos */
cur_pos + (i+1LL) * st->codecpar->block_align, /* pos */
dpds_table[i] / bytes_per_sample, /* timestamp */
st->codecpar->block_align, /* size */
0, /* duration */