Revision 755bfeab libavcodec/ratecontrol.c

View differences:

libavcodec/ratecontrol.c
160 160

  
161 161
            next= strchr(p, ';');
162 162
            if(next){
163
                (*next)=0; //sscanf in unbelieavle slow on looong strings //FIXME copy / dont write
163
                (*next)=0; //sscanf in unbelievably slow on looong strings //FIXME copy / do not write
164 164
                next++;
165 165
            }
166 166
            e= sscanf(p, " in:%d ", &picture_number);
......
396 396
        else if(q < last_q - maxdiff) q= last_q - maxdiff;
397 397
    }
398 398

  
399
    rcc->last_qscale_for[pict_type]= q; //Note we cant do that after blurring
399
    rcc->last_qscale_for[pict_type]= q; //Note we cannot do that after blurring
400 400

  
401 401
    if(pict_type!=B_TYPE)
402 402
        rcc->last_non_b_pict_type= pict_type;
......
605 605
        bits_tab[i]= bits;
606 606
    }
607 607

  
608
    /* handle qmin/qmax cliping */
608
    /* handle qmin/qmax clipping */
609 609
    if(s->flags&CODEC_FLAG_NORMALIZE_AQP){
610 610
        float factor= bits_sum/cplx_sum;
611 611
        for(i=0; i<s->mb_num; i++){

Also available in: Unified diff