avcodec/takdec: always check bits_per_raw_sample
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 31 Jan 2014 18:16:02 +0000 (19:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 31 Jan 2014 18:54:27 +0000 (19:54 +0100)
commitf58eab151214d2d35ff0973f2b3e51c5eb372da4
tree7130e910ee1199d35dd2adab5f3c09e828f20710
parent0de9d72b7c000f8abdee8b3a90b13896fff41147
avcodec/takdec: always check bits_per_raw_sample

Fixes out of array access
Fixes: asan_heap-oob_19c7a94_6470_cov_1453611734_luckynight-partial.tak
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/takdec.c