avcodec/ffwavesynth: Check sample rate before use
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 Jul 2019 22:35:47 +0000 (00:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Jul 2019 17:05:02 +0000 (19:05 +0200)
commitc95857a4237d7a0c55378a44f51d2d809f3bc8f5
tree294d73ed4f332bd47fa6cfd9a1e52ff1663656a1
parent23599834bd6f6c75fe6ec089c617185e215ef52c
avcodec/ffwavesynth: Check sample rate before use

Fixes: division by zero
Fixes: 15725/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5641231956180992

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffwavesynth.c