aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-12-19 00:22:01 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-17 21:34:53 +0200
commitb6b10bd6bcc0cc86d226865bc72da9fba9ec1137 (patch)
treeab8a045cee584a0de7a0c7c428a7374b932b51fe
parent4fb6c6bcac25a47f72442dd0ff16ca6775744e12 (diff)
downloadffmpeg-b6b10bd6bcc0cc86d226865bc72da9fba9ec1137.tar.gz
avformat/mpegts: Increase pcr_incr width to 64bit
Fixes: division by zero Fixes: 26459/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTSRAW_fuzzer-5666350112178176 Fixes: 28154/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTSRAW_fuzzer-5195728439476224 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit ef7b117b7be8a81d6b245cadf096cbe4b1a12987) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index d6a4ef0203..d7cff10a0b 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -131,7 +131,7 @@ struct MpegTSContext {
int fix_teletext_pts;
int64_t cur_pcr; /**< used to estimate the exact PCR */
- int pcr_incr; /**< used to estimate the exact PCR */
+ int64_t pcr_incr; /**< used to estimate the exact PCR */
/* data needed to handle file based ts */
/** stop parsing loop */