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, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commit6577ae7119ebf326a1af25fb90c1afde74602633
treea4478202330ec4648e97a7bb09a6ac97513c6c9d
parent9ecb1998b034cf53bf3812eb1d3427cb82e41a21
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