summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-12-21 15:45:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-12-21 15:45:53 +0000
commitd6975eb82b314cd5512ad88edfaa401fd8af6eb5 (patch)
tree43830ee135a0d3138c876c5a0b17bf66c88332ce /libavcodec
parent2175b80bed49eb45ccb43539838dceeec745703e (diff)
downloadffmpeg-streaming-d6975eb82b314cd5512ad88edfaa401fd8af6eb5.zip
ffmpeg-streaming-d6975eb82b314cd5512ad88edfaa401fd8af6eb5.tar.gz
use qscale_table in adaptive quant
some PSNR/bitrate improvement for adaptive quant Originally committed as revision 7346 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 654e96f..839c251 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -4340,6 +4340,7 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x,
update_qscale(s);
if(!(s->flags&CODEC_FLAG_QP_RD)){
+ s->qscale= s->current_picture_ptr->qscale_table[mb_xy];
s->dquant= s->qscale - last_qp;
if(s->out_format==FMT_H263){
OpenPOWER on IntegriCloud