changeset 4320:6c32aa2d9323 libavcodec

use qscale_table in adaptive quant some PSNR/bitrate improvement for adaptive quant
author michael
date Thu, 21 Dec 2006 15:45:53 +0000
parents 8e11023556c3
children 6f5a0164162c
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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){