avcodec/sbcdec: Initialize number of channels
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 21:50:23 +0000 (23:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Sep 2019 19:02:34 +0000 (21:02 +0200)
commit02fb6a214717d40487cae2b06f13b14fabb6e101
treeaf0d85d418b3918ff95ce02a2611500ce5c0a37b
parent8b0f949906116c40b6f1e55a1bce4447ada3219c
avcodec/sbcdec: Initialize number of channels

Fixes: out of array access
Fixes: 17609/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SBC_fuzzer-5758729319874560

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