Browse Source

1000l commit forgotten cabac fix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
c834c7e39c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/cabac.c

+ 2
- 0
libavcodec/cabac.c View File

@@ -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);


Loading…
Cancel
Save