fix q=0 bug

Originally committed as revision 4754 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2005-12-18 19:59:33 +00:00
parent 9944fb97c4
commit 71160c55e0

View File

@ -5369,7 +5369,8 @@ static void encode_picture(MpegEncContext *s, int picture_number)
} }
if (!s->fixed_qscale) if (!s->fixed_qscale)
s->current_picture.quality = ff_rate_estimate_qscale(s); //FIXME pic_ptr s->current_picture_ptr->quality=
s->current_picture.quality = ff_rate_estimate_qscale(s);
if(s->adaptive_quant){ if(s->adaptive_quant){
switch(s->codec_id){ switch(s->codec_id){