Commit 90864f27 authored by D Richard Felker III's avatar D Richard Felker III Committed by Michael Niedermayer

10l found&patch by D Richard Felker III <dalias at aerifal.cx>

Originally committed as revision 649 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 333547be
...@@ -342,7 +342,7 @@ static int init_pass2(MpegEncContext *s) ...@@ -342,7 +342,7 @@ static int init_pass2(MpegEncContext *s)
q= 1/((1/avg_quantizer[pict_type] - 1/short_term_q)*s->qcompress + 1/short_term_q); q= 1/((1/avg_quantizer[pict_type] - 1/short_term_q)*s->qcompress + 1/short_term_q);
if (q<qmin) q=qmin; if (q<qmin) q=qmin;
else if(q>qmax) q=qmax; else if(q>qmax) q=qmax;
printf("lq:%f, sq:%f t:%f q:%f\n", avg_quantizer[rce->pict_type], short_term_q, bits_left, q); //printf("lq:%f, sq:%f t:%f q:%f\n", avg_quantizer[rce->pict_type], short_term_q, bits_left, q);
rce->new_qscale= q; rce->new_qscale= q;
} }
......
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