OSDN Git Service

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>
Thu, 24 Nov 2016 23:36:36 +0000 (00:36 +0100)
commit8c8f543b81aa2b50bb6a6cfd370a0061281492a3
tree2ecfeea706ce4d4298079d792e2fb3f5ae1f2718
parent98b3a7979f2ff64cacfba4d8925faa28fc657c51
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>
libavcodec/libopusdec.c