# HG changeset patch # User michael # Date 1166715953 0 # Node ID 6c32aa2d932361141f0d1c54c753e1bac9763673 # Parent 8e11023556c3ff261717dc2446089c5f480946ab use qscale_table in adaptive quant some PSNR/bitrate improvement for adaptive quant diff -r 8e11023556c3 -r 6c32aa2d9323 mpegvideo.c --- a/mpegvideo.c Thu Dec 21 15:22:16 2006 +0000 +++ b/mpegvideo.c Thu Dec 21 15:45:53 2006 +0000 @@ -4340,6 +4340,7 @@ 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){