avcodec/utils: Use 64bit for intermediate in AV_CODEC_ID_ADPCM_THP* duration calculation
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 24 Jun 2021 18:00:05 +0000 (20:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 29 Jun 2021 17:36:36 +0000 (19:36 +0200)
commit00ae9b77ef757f82660b4b3d2f490374a4f209fd
treeb2cca0f82c450f33bebf0731ba6ad4650f9bb6f5
parentd70dde2712bbead523004d8294ff1a0fdeab480b
avcodec/utils: Use 64bit for intermediate in AV_CODEC_ID_ADPCM_THP* duration calculation

Fixes: signed integer overflow: 486539264 * 14 cannot be represented in type 'int'
Fixes: 35281/clusterfuzz-testcase-minimized-ffmpeg_dem_RSD_fuzzer-6068262742917120

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c