h264_cabac: Break infinite loops
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Jan 2013 03:20:24 +0000 (04:20 +0100)
committerMartin Storsjö <martin@martin.st>
Thu, 15 Jan 2015 08:17:01 +0000 (10:17 +0200)
commitdef69553e745e007925147b2e7e4b32c57d08fdf
treecb9c5ec478b8c2fa3e8925fc94c6b9cc3ae3126e
parent402fb5550e36dd994b13941ef5499f9087afd345
h264_cabac: Break infinite loops

This fixes out of array reads and/or infinite loops.

30 is the maximum number of bits that can be read into
coeff_abs below.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264_cabac.c