avcodec/amrwbdec: Fix division by 0 in find_hb_gain()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 2 Jun 2018 22:48:06 +0000 (00:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit832d9accfc23b837a3c6e10fd92c9a5a6129bf0b
treea35f21c3aa9ad3c1bc2c85c3547e7c0de4d57c1a
parent17ed3c809da5852c3d5c41df14f0d44a8d7c10a9
avcodec/amrwbdec: Fix division by 0 in find_hb_gain()

This restructures the code slightly toward D_UTIL_dec_synthesis()

Fixes: 7420/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AMRWB_fuzzer-6577305112543232

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 dce80a4b47efaba97707bda781a9ee57f5a26974)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/amrwbdec.c