swr: check channel layouts before using them.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Feb 2013 16:49:16 +0000 (17:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Feb 2013 16:50:24 +0000 (17:50 +0100)
commit21cd905cd44a4bbafe8631bbaa6021d328413ce5
treebaa3006bb681c2ddbdf070ec2b71d269afbd0a9e
parent34126cd090c38250b3002169843d60f4e4c3beb6
swr: check channel layouts before using them.

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c