1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avformat/asfdec_f: Use 64bit for preroll computation

Fixes: CID1500342 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:27:28 +02:00
parent d9d1f65308
commit 70b4994762
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -675,7 +675,7 @@ static int asf_read_marker(AVFormatContext *s)
avio_rl64(pb); // offset, 8 bytes
pres_time = avio_rl64(pb); // presentation time
pres_time = av_sat_sub64(pres_time, asf->hdr.preroll * 10000);
pres_time = av_sat_sub64(pres_time, asf->hdr.preroll * 10000LL);
avio_rl16(pb); // entry length
avio_rl32(pb); // send time
avio_rl32(pb); // flags