From 169bc475d1eff036c9784811fce9d3949df124bc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 21 Nov 2006 19:35:06 +0000 Subject: [PATCH] 100l infinite loop fix Originally committed as revision 7147 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 6c11be589a..58d1c95c03 100644 --- a/libavcodec/mpegvideo.c +++ b/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; imb_height*s->mb_width; i++) + for(i=0; imb_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()