avcodec/vorbisdec: Check parameters in vorbis_floor0_decode() before divide
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 10:28:55 +0000 (12:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 15:54:24 +0000 (17:54 +0200)
commitaecc9b96d613f54d772e9475738bb54e0e1f182e
treee2dc003638352c4a46a842cb6419527940bac571
parent652ea23cb34bc59b38c0088865600e2b86079815
avcodec/vorbisdec: Check parameters in vorbis_floor0_decode() before divide

Fixes: division by zero
Fixes: 16183/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-5688966782648320

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vorbisdec.c