diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-11-21 19:35:06 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-11-21 19:35:06 +0000 |
commit | 169bc475d1eff036c9784811fce9d3949df124bc (patch) | |
tree | f6eddb51348b80c8455651d8c04794a75f0e294f | |
parent | e9f36c5c4d849eaefe8223d8468cc007098562f3 (diff) | |
download | ffmpeg-169bc475d1eff036c9784811fce9d3949df124bc.tar.gz |
100l infinite loop fix
Originally committed as revision 7147 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; 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() |