diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-06-05 18:10:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-06-05 18:10:23 +0000 |
commit | a1e07d39bea4a20a15082a8c9566fb8706e3cf32 (patch) | |
tree | 4e2f4ad6387dcd5fdb1418cb7f9b2ecc42fbc440 | |
parent | 7ae93e6aea134c4dd250140aed2561e1f5e9c3d1 (diff) | |
download | ffmpeg-a1e07d39bea4a20a15082a8c9566fb8706e3cf32.tar.gz |
qscale + qprd fix
Originally committed as revision 3192 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index a0d0c8b62d..e28d9b309b 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; |