avcodec/on2avc: Check number of channels
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 20:15:07 +0000 (22:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 20:15:54 +0000 (22:15 +0200)
commit550f3e9df3410b3dd975e590042c0d83e20a8da3
treed2a0deb27670a034be6784993debc9f5eb11ba7b
parent578da1f0dd1bd28b4bdee17b2f7a12c8bde13555
avcodec/on2avc: Check number of channels

Fixes out of array access
Fixes: asan_heap-oob_4da4f3_7_asan_heap-oob_4da4f3_173_Xmen_avc_500.vp6

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