mirror of https://git.ffmpeg.org/ffmpeg.git
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>
(cherry picked from commit 70b4994762
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2b79276114
commit
2cca78ee68
|
@ -768,7 +768,7 @@ static int asf_read_marker(AVFormatContext *s, int64_t size)
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue