aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-23 02:27:28 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-06-01 18:01:28 +0200
commit70b499476213a198ac0f39450cddaea4b34662f5 (patch)
treed86892020637b2f1067898ed8d880c18e965f7e7
parentd9d1f65308d40502015272a3d1cc9f805c77e075 (diff)
downloadffmpeg-70b499476213a198ac0f39450cddaea4b34662f5.tar.gz
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>
-rw-r--r--libavformat/asfdec_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index fcc2b98a2c..2441cadb44 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -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