[FFmpeg-cvslog] r8950 - trunk/libavcodec/vc1.c

kostya subversion
Wed May 9 13:30:30 CEST 2007


Author: kostya
Date: Wed May  9 13:30:30 2007
New Revision: 8950

Log:
Use correct dequantizer value

Modified:
   trunk/libavcodec/vc1.c

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Wed May  9 13:30:30 2007
@@ -2962,7 +2962,7 @@ static int vc1_decode_p_block(VC1Context
         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) {




More information about the ffmpeg-cvslog mailing list