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)
committerAnton Khirnov <anton@khirnov.net>
Wed, 23 Nov 2016 12:03:15 +0000 (13:03 +0100)
commitf92d7bdfddfaac04b3bb31f2749d173ca1d8ba6d
treef38fe883153ccdab7bb5a7e704012030b7643c63
parentb34c6cd57a2e8aad5f773aea933f77883de320ec
libopusdec: default to stereo for invalid number of channels

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

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/libopusdec.c