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>
Fri, 18 Jan 2013 00:29:38 +0000 (01:29 +0100)
commitd270c3202539e8364c46410e15f7570800e33343
tree0425e9288ce83c034a99ec83d5d3ad159110eeab
parent4aed4f58465fa0d6940ce72c0dad90caab3ed36e
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>
libavcodec/utils.c