Commit 2d7e6ac7 authored by michael's avatar michael

100l infinite loop fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7147 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c6c7f56e
...@@ -2556,7 +2556,7 @@ vbv_retry: ...@@ -2556,7 +2556,7 @@ vbv_retry:
s->next_lambda= FFMAX(s->lambda+1, s->lambda*(s->qscale+1) / s->qscale); s->next_lambda= FFMAX(s->lambda+1, s->lambda*(s->qscale+1) / s->qscale);
if(s->adaptive_quant){ if(s->adaptive_quant){
int i; 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->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() s->mb_skipped = 0; //done in MPV_frame_start()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment