changeset 4948:74caff45a271 libavcodec

Use correct dequantizer value
author kostya
date Wed, 09 May 2007 11:30:30 +0000
parents 6a4e8b52dc7b
children 845386be542c
files vc1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Wed May 09 09:26:06 2007 +0000
+++ b/vc1.c	Wed May 09 11:30:30 2007 +0000
@@ -2962,7 +2962,7 @@
         if(ttblk == TT_8X4_TOP || ttblk == TT_8X4_BOTTOM) ttblk = TT_8X4;
         if(ttblk == TT_4X8_RIGHT || ttblk == TT_4X8_LEFT) ttblk = TT_4X8;
     }
-    scale = 2 * mquant + v->halfpq;
+    scale = 2 * mquant + ((v->pq == mquant) ? v->halfpq : 0);
 
     // convert transforms like 8X4_TOP to generic TT and SUBBLKPAT
     if(ttblk == TT_8X4_TOP || ttblk == TT_8X4_BOTTOM) {