Revision ec9ed85d

View differences:

libavcodec/mpegvideo.c
2552 2552

  
2553 2553
            if(put_bits_count(&s->pb) > max_size && s->lambda < s->avctx->lmax){
2554 2554
                s->next_lambda= FFMAX(s->lambda+1, s->lambda*(s->qscale+1) / s->qscale);
2555
                if(s->adaptive_quant){
2556
                    int i;
2557
                    for(i=0; i<s->mb_height*s->mb_width; i++)
2558
                        s->lambda_table[i]= FFMAX(s->lambda_table[i]+1, s->lambda_table[i]*(s->qscale+1) / s->qscale);
2559
                }
2555 2560
                s->mb_skipped = 0;        //done in MPV_frame_start()
2556 2561
                if(s->pict_type==P_TYPE){ //done in encode_picture() so we must undo it
2557 2562
                    if(s->flipflop_rounding || s->codec_id == CODEC_ID_H263P || s->codec_id == CODEC_ID_MPEG4)

Also available in: Unified diff