Revision 349d7287 libavcodec/ffv1.c

View differences:

libavcodec/ffv1.c
304 304

  
305 305
#define put_rac(C,S,B) \
306 306
do{\
307
    if(rc_stat){\
307 308
    rc_stat[*(S)][B]++;\
309
    }\
308 310
    put_rac(C,S,B);\
309 311
}while(0)
310 312

  
......
344 346
}
345 347

  
346 348
static void av_noinline put_symbol(RangeCoder *c, uint8_t *state, int v, int is_signed){
347
    uint64_t rc_stat[256][2]; //we dont bother counting header bits.
348
    put_symbol_inline(c, state, v, is_signed, rc_stat);
349
    put_symbol_inline(c, state, v, is_signed, NULL);
349 350
}
350 351

  
351 352
static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state, int is_signed){
......
493 494
        diff= fold(diff, bits);
494 495

  
495 496
        if(s->ac){
497
            if(s->flags & CODEC_FLAG_PASS1){
496 498
            put_symbol_inline(c, p->state[context], diff, 1, s->rc_stat);
499
            }else{
500
                put_symbol_inline(c, p->state[context], diff, 1, NULL);
501
            }
497 502
        }else{
498 503
            if(context == 0) run_mode=1;
499 504

  

Also available in: Unified diff