avcodec/utils: do "calc from frame_bytes, channels, and block_align" in 64bit
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Apr 2021 14:50:13 +0000 (16:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Jun 2021 12:22:42 +0000 (14:22 +0200)
commit3447979d08d701581a65f7275425cb1a59302319
tree75af9e9d81c6e3138369bf249229c2c6c3af5dd7
parentdbbcfbcc4e4f0e91f814f2e13ced7b6d99069518
avcodec/utils: do "calc from frame_bytes, channels, and block_align" in 64bit

Fixes: signed integer overflow: 104962766 * 32 cannot be represented in type 'int'
Fixes: 33614/clusterfuzz-testcase-minimized-ffmpeg_dem_RSD_fuzzer-6252129036664832

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