qscale + qprd fix

Originally committed as revision 3192 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-06-05 18:10:23 +00:00
parent 7ae93e6aea
commit a1e07d39be
1 changed files with 2 additions and 1 deletions

View File

@ -3497,7 +3497,8 @@ static void encode_mb(MpegEncContext *s, int motion_x, int motion_y)
}
}
ff_set_qscale(s, last_qp + s->dquant);
}
}else if(s->flags&CODEC_FLAG_QP_RD)
ff_set_qscale(s, s->qscale + s->dquant);
wrap_y = s->linesize;
wrap_c = s->uvlinesize;