avcodec/adpcm: Check number of channels for MTAF
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 23 Sep 2019 21:52:04 +0000 (23:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 10:24:41 +0000 (12:24 +0200)
commit74bbf9bc8279e0b8eba89c8cca68e8ad7ff547ed
treebaf2ba78cbe7d7ca137595aa30a5b9c74fb8246e
parent89cbbe9f70fc0ebe3f7227f939aa8e5841e6d218
avcodec/adpcm: Check number of channels for MTAF

Fixes: out of array access
Fixes: 17608/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_MTAF_fuzzer-5074936267276288

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/adpcm.c