mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
h264: ff_init_cabac_states doesnt use its argument thus remove it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c684cb29bc
commit
bfb39023b0
@ -137,7 +137,7 @@ void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){
|
|||||||
c->range= 0x1FE;
|
c->range= 0x1FE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_init_cabac_states(CABACContext *c){
|
void ff_init_cabac_states(){
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
for(i=0; i<64; i++){
|
for(i=0; i<64; i++){
|
||||||
@ -271,7 +271,7 @@ int main(void){
|
|||||||
|
|
||||||
av_lfg_init(&prng, 1);
|
av_lfg_init(&prng, 1);
|
||||||
ff_init_cabac_encoder(&c, b, SIZE);
|
ff_init_cabac_encoder(&c, b, SIZE);
|
||||||
ff_init_cabac_states(&c);
|
ff_init_cabac_states();
|
||||||
|
|
||||||
for(i=0; i<SIZE; i++){
|
for(i=0; i<SIZE; i++){
|
||||||
if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7;
|
if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7;
|
||||||
|
@ -51,6 +51,6 @@ typedef struct CABACContext{
|
|||||||
|
|
||||||
void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size);
|
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_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 */
|
#endif /* AVCODEC_CABAC_H */
|
||||||
|
@ -3536,7 +3536,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
|
|||||||
align_get_bits(&s->gb);
|
align_get_bits(&s->gb);
|
||||||
|
|
||||||
/* init cabac */
|
/* init cabac */
|
||||||
ff_init_cabac_states(&h->cabac);
|
ff_init_cabac_states();
|
||||||
ff_init_cabac_decoder(&h->cabac,
|
ff_init_cabac_decoder(&h->cabac,
|
||||||
s->gb.buffer + get_bits_count(&s->gb) / 8,
|
s->gb.buffer + get_bits_count(&s->gb) / 8,
|
||||||
(get_bits_left(&s->gb) + 7) / 8);
|
(get_bits_left(&s->gb) + 7) / 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user