avcodec/ac3dec: check bap before use.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Nov 2013 22:16:17 +0000 (23:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Nov 2013 22:17:17 +0000 (23:17 +0100)
commit4782c4284fa3856a9b6910fe5ff6e4fb1c65b58c
treeb012635027dc6fff9c43606d3d57e955c38477fd
parentc3d5cd1ebfba8fe36a0da7fad47df7fdf9c4ccd0
avcodec/ac3dec: check bap before use.

Fixes out of array read
Fixes assertion failure
Fixes asan_static-oob_16431c0_8036_rio_bravo_mono_64_spx.ac3

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