[Ffmpeg-cvslog] r7147 - trunk/libavcodec/mpegvideo.c
michael
subversion
Tue Nov 21 20:35:07 CET 2006
Author: michael
Date: Tue Nov 21 20:35:06 2006
New Revision: 7147
Modified:
trunk/libavcodec/mpegvideo.c
Log:
100l infinite loop fix
Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c (original)
+++ trunk/libavcodec/mpegvideo.c Tue Nov 21 20:35:06 2006
@@ -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()
More information about the ffmpeg-cvslog
mailing list