100l infinite loop fix

Originally committed as revision 7147 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 18 years ago
parent e9f36c5c4d
commit 169bc475d1
  1. 2
      libavcodec/mpegvideo.c

@ -2556,7 +2556,7 @@ vbv_retry:
s->next_lambda= FFMAX(s->lambda+1, s->lambda*(s->qscale+1) / s->qscale);
if(s->adaptive_quant){
int i;
for(i=0; i<s->mb_height*s->mb_width; i++)
for(i=0; i<s->mb_height*s->mb_stride; i++)
s->lambda_table[i]= FFMAX(s->lambda_table[i]+1, s->lambda_table[i]*(s->qscale+1) / s->qscale);
}
s->mb_skipped = 0; //done in MPV_frame_start()

Loading…
Cancel
Save