From bfb39023b0b2c79010ba005c195813931c7f2776 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 26 Aug 2012 05:44:46 +0200 Subject: [PATCH] h264: ff_init_cabac_states doesnt use its argument thus remove it Signed-off-by: Michael Niedermayer --- libavcodec/cabac.c | 4 ++-- libavcodec/cabac.h | 2 +- libavcodec/h264.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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);