avcodec_decode_audio: do not trust the channel layout, use the channel count.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Jan 2013 00:28:44 +0000 (01:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Jan 2013 15:18:08 +0000 (16:18 +0100)
commit43c6b45a53a186a187f7266e4d6bd3c2620519f1
treec0ce131d61c0f261693a44294700dbedb6c5b181
parent68a0477bc0af026db971ddba22541029a9e8715b
avcodec_decode_audio: do not trust the channel layout, use the channel count.

Fixes memory corruption

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d270c3202539e8364c46410e15f7570800e33343)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c