diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-26 05:44:46 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-13 09:14:05 +0100 |
commit | 0fe4b48540613127f7eed13769e989662cb74eef (patch) | |
tree | e1c18f5094e00b2aeb75726f080b99c46d787daf /libavcodec | |
parent | be40d6cc2bc99ef90954c85f2bc77f95944ba723 (diff) | |
download | ffmpeg-0fe4b48540613127f7eed13769e989662cb74eef.tar.gz |
cabac: remove unused argument of ff_init_cabac_states()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cabac.c | 3 | ||||
-rw-r--r-- | libavcodec/cabac.h | 2 | ||||
-rw-r--r-- | libavcodec/h264.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 02d2911e85..6ba9303dc1 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -136,7 +136,8 @@ 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(void) +{ int i, j; for(i=0; i<64; i++){ diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index 1f1c943262..04495a6fe6 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -51,6 +51,6 @@ typedef struct CABACContext{ void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size); void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size); -void ff_init_cabac_states(CABACContext *c); +void ff_init_cabac_states(void); #endif /* AVCODEC_CABAC_H */ diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 472fa475aa..5308fc3e7d 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -4111,7 +4111,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg) align_get_bits(&h->gb); /* init cabac */ - ff_init_cabac_states(&h->cabac); + ff_init_cabac_states(); ff_init_cabac_decoder(&h->cabac, h->gb.buffer + get_bits_count(&h->gb) / 8, (get_bits_left(&h->gb) + 7) / 8); |