diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-14 04:47:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-14 04:47:27 +0100 |
commit | c834c7e39c4ebad0e38adca7a3a9c25fd04548b3 (patch) | |
tree | 9a779499d1f09fc32dcd9caa78260dc2a098136f /libavcodec/cabac.c | |
parent | e986a5d10d95b62cd85aaefc7d4da34699fbedeb (diff) | |
download | ffmpeg-c834c7e39c4ebad0e38adca7a3a9c25fd04548b3.tar.gz |
1000l commit forgotten cabac fix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r-- | libavcodec/cabac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 34ff40c44b..9b880d2398 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -52,6 +52,7 @@ static const uint8_t lps_range[64][4]= { uint8_t ff_h264_mlps_state[4*64]; uint8_t ff_h264_lps_range[4*2*64]; +uint8_t ff_h264_lps_state[2*64]; static uint8_t h264_mps_state[2 * 64]; static const uint8_t mps_state[64]= { @@ -200,6 +201,7 @@ static void put_cabac(CABACContext *c, uint8_t * const state, int bit){ }else{ c->low += c->range - RangeLPS; c->range = RangeLPS; + *state= ff_h264_lps_state[*state]; } renorm_cabac_encoder(c); |