avcodec/aacsbr: check that the element type matches before applying SBR
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 00:05:43 +0000 (02:05 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 00:33:45 +0000 (02:33 +0200)
commit79a98294da6cd85f8c86b34764c5e0c43b09eea3
tree06beefe55ab66bdbb0a9af09d158b3a109cfc4c1
parent4ebb43f19c416e1601730ca9ae57749b1385c563
avcodec/aacsbr: check that the element type matches before applying SBR

Fixes out of array access
Fixes: signal_sigsegv_3670fc0_2818_cov_2307326154_moon.mux

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