avcodec/amrwbdec: Fix division by 0 in voice_factor()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Dec 2017 14:32:54 +0000 (15:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 10 Dec 2017 19:23:15 +0000 (20:23 +0100)
commita4f65c998e0737201fff4419b4b5c4f798c424fc
tree6469f3d3a8116996b13acb0f09f235e6ef10d3c7
parentf9ae19faf4a1b3373cee205797d6bec61934e389
avcodec/amrwbdec: Fix division by 0 in voice_factor()

The added value matches "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Extended Adaptive Multi-Rate - Wideband (AMR-WB+) codec; Floating-point ANSI-C code (3GPP TS 26.304 version 14.0.0 Release 14)
Extended Adaptive Multi-Rate - Wideband (AMR-WB+) codec; Floating-point ANSI-C code"

Fixes: runtime error: division by zero
Fixes: 4415/clusterfuzz-testcase-minimized-4677752314658816

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