[FFmpeg-cvslog] cabac: remove unused argument of ff_init_cabac_states()
Michael Niedermayer
git at videolan.org
Wed Mar 13 14:53:08 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 26 05:44:46 2012 +0200| [0fe4b48540613127f7eed13769e989662cb74eef] | committer: Anton Khirnov
cabac: remove unused argument of ff_init_cabac_states()
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0fe4b48540613127f7eed13769e989662cb74eef
---
libavcodec/cabac.c | 3 ++-
libavcodec/cabac.h | 2 +-
libavcodec/h264.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 02d2911..6ba9303 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 1f1c943..04495a6 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 472fa47..5308fc3 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);
More information about the ffmpeg-cvslog
mailing list