libopusdec: default to stereo for invalid number of channels
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 14 Nov 2016 20:41:45 +0000 (21:41 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:46:35 +0000 (00:46 +0100)
commit56b120630fd2cd39134fc25cb41caea0b620df7c
tree94166ebb8ecb6ca77a6dcf266f78bc974d122030
parent22cd4aa22116a365d611091916a3eff74e21ec3f
libopusdec: default to stereo for invalid number of channels

This fixes an out-of-bounds read if avc->channels is 0.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 8c8f543b81aa2b50bb6a6cfd370a0061281492a3)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/libopusdec.c