avcodec/cabac: support UNCHECKED_BITSTREAM_READER = 0
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Oct 2013 09:54:46 +0000 (10:54 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Oct 2013 10:13:27 +0000 (11:13 +0100)
commitfa6fa2162b730336fc1d6ee0d547dcc81f4afbad
treeb174e1b759455fe62ff7d3e8c122258fc33a3557
parent7c8b65f688ea75496e278b7c042f2eda746f3eac
avcodec/cabac: support UNCHECKED_BITSTREAM_READER = 0

Fixes overreads in HEVC
Fixes Ticket3070
Also fixed remaining issues from Ticket3075 and Ticket3076

Some lines of code taken from  0c5f839693da2276c2da23400f67a67be4ea0af1:libavcodec/x86/cabac.h
and                            0c5f839693da2276c2da23400f67a67be4ea0af1:libavcodec/cabac_functions.h

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cabac_functions.h
libavcodec/x86/cabac.h