diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 544364c61c..385721fe1d 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -137,7 +137,7 @@ void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){ c->range= 0x1FE; } -void ff_init_cabac_states(CABACContext *c){ +void ff_init_cabac_states(){ int i, j; for(i=0; i<64; i++){ @@ -271,7 +271,7 @@ int main(void){ av_lfg_init(&prng, 1); ff_init_cabac_encoder(&c, b, SIZE); - ff_init_cabac_states(&c); + ff_init_cabac_states(); for(i=0; igb); /* init cabac */ - ff_init_cabac_states(&h->cabac); + ff_init_cabac_states(); ff_init_cabac_decoder(&h->cabac, s->gb.buffer + get_bits_count(&s->gb) / 8, (get_bits_left(&s->gb) + 7) / 8);