diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-10 17:31:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-02-02 14:18:21 +0100 |
commit | 2434d2452fffee0284529ef4adca7bcec2bd4bb3 (patch) | |
tree | 937bccf871bd6ae58c7223a9be762d454fff08ca /libavformat | |
parent | 7bc2176c4d7eeea1062604d641d51639cf009778 (diff) | |
download | ffmpeg-2434d2452fffee0284529ef4adca7bcec2bd4bb3.tar.gz |
avformat/kvag: Fix integer overflow in bitrate computation
Fixes: signed integer overflow: 1077952576 * 4 cannot be represented in type 'int'
Fixes: 26152/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5674758518341632
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7ac87a2c34bea97dd87208b1ba7384dfbdea2a04)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/kvag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/kvag.c b/libavformat/kvag.c index 0a11fc0556..8f641873b9 100644 --- a/libavformat/kvag.c +++ b/libavformat/kvag.c @@ -83,7 +83,7 @@ static int kvag_read_header(AVFormatContext *s) par->bits_per_raw_sample = 16; par->block_align = 1; par->bit_rate = par->channels * - par->sample_rate * + (uint64_t)par->sample_rate * par->bits_per_coded_sample; avpriv_set_pts_info(st, 64, 1, par->sample_rate); |