Revision f66e4f5f libavcodec/h263.c

View differences:

libavcodec/h263.c
211 211
        for(i=0; i<2; i++){
212 212
            int div, error;
213 213
            div= (s->avctx->time_base.num*1800000LL + 500LL*s->avctx->time_base.den) / ((1000LL+i)*s->avctx->time_base.den);
214
            div= clip(1, div, 127);
214
            div= av_clip(1, div, 127);
215 215
            error= FFABS(s->avctx->time_base.num*1800000LL - (1000LL+i)*s->avctx->time_base.den*div);
216 216
            if(error < best_error){
217 217
                best_error= error;
......
496 496
    for(i=0; i<s->mb_num; i++){
497 497
        unsigned int lam= s->lambda_table[ s->mb_index2xy[i] ];
498 498
        int qp= (lam*139 + FF_LAMBDA_SCALE*64) >> (FF_LAMBDA_SHIFT + 7);
499
        qscale_table[ s->mb_index2xy[i] ]= clip(qp, s->avctx->qmin, s->avctx->qmax);
499
        qscale_table[ s->mb_index2xy[i] ]= av_clip(qp, s->avctx->qmin, s->avctx->qmax);
500 500
    }
501 501
}
502 502

  

Also available in: Unified diff