Commit c834c7e3 authored by Michael Niedermayer's avatar Michael Niedermayer

1000l commit forgotten cabac fix

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e986a5d1
...@@ -52,6 +52,7 @@ static const uint8_t lps_range[64][4]= { ...@@ -52,6 +52,7 @@ static const uint8_t lps_range[64][4]= {
uint8_t ff_h264_mlps_state[4*64]; uint8_t ff_h264_mlps_state[4*64];
uint8_t ff_h264_lps_range[4*2*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 uint8_t h264_mps_state[2 * 64];
static const uint8_t mps_state[64]= { static const uint8_t mps_state[64]= {
...@@ -200,6 +201,7 @@ static void put_cabac(CABACContext *c, uint8_t * const state, int bit){ ...@@ -200,6 +201,7 @@ static void put_cabac(CABACContext *c, uint8_t * const state, int bit){
}else{ }else{
c->low += c->range - RangeLPS; c->low += c->range - RangeLPS;
c->range = RangeLPS; c->range = RangeLPS;
*state= ff_h264_lps_state[*state];
} }
renorm_cabac_encoder(c); renorm_cabac_encoder(c);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment