[FFmpeg-cvslog] h264: ff_init_cabac_states doesnt use its argument thus remove it

Michael Niedermayer git at videolan.org
Sun Aug 26 05:52:43 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 26 05:44:46 2012 +0200| [bfb39023b0b2c79010ba005c195813931c7f2776] | committer: Michael Niedermayer

h264: ff_init_cabac_states doesnt use its argument thus remove it

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bfb39023b0b2c79010ba005c195813931c7f2776
---

 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 544364c..385721f 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; i<SIZE; i++){
         if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7;
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index 29535d0..d4bafe0 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 f94e1e1..24bf90a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3536,7 +3536,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
         align_get_bits(&s->gb);
 
         /* 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);



More information about the ffmpeg-cvslog mailing list