avcodec/utils: Check sample rate before use for AV_CODEC_ID_BINKAUDIO_DCT in get_audi...
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Oct 2020 16:21:19 +0000 (17:21 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 29 Oct 2020 19:42:48 +0000 (20:42 +0100)
commitec7e0d42884b40ce93b6b5e94de5f7849310f8a0
treef8dc687a4b99d2d6f37b6d0606df4c84e2af223d
parentfbb44bc51a647862eb05ae3f9d7d49a0be9bed57
avcodec/utils: Check sample rate before use for AV_CODEC_ID_BINKAUDIO_DCT in get_audio_frame_duration()

Fixes: shift exponent 95 is too large for 32-bit type 'int'
Fixes: 26590/clusterfuzz-testcase-minimized-ffmpeg_dem_SMACKER_fuzzer-5120609937522688

Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c