changeset 4223:e766498e81e9 libavcodec

100l infinite loop fix
author michael
date Tue, 21 Nov 2006 19:35:06 +0000
parents fa816309076b
children 8e0dcefcb464
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Tue Nov 21 06:15:18 2006 +0000
+++ b/mpegvideo.c	Tue Nov 21 19:35:06 2006 +0000
@@ -2556,7 +2556,7 @@
                 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()