]> granicus.if.org Git - libx264/commitdiff
fix rounding of intra dequant when qp<=3
authorLoren Merritt <pengvado@videolan.org>
Mon, 23 May 2005 08:57:02 +0000 (08:57 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 23 May 2005 08:57:02 +0000 (08:57 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@236 df754926-b1dd-0310-bc7b-ec298dee348c

common/macroblock.c

index a28d552b68c1eec85e05083a66c6903d3c07ce0c..513952e093fbb94e5d59caeed13614cb4b452a11 100644 (file)
@@ -139,7 +139,7 @@ void x264_mb_dequant_4x4_dc( int16_t dct[4][4], int i_qscale )
     else
     {
         const int i_dmf = dequant_mf[i_qscale%6][0][0];
-        const int f = 1 << ( 1 + i_qbits );
+        const int f = -i_qbits; // 1 << (-1-i_qbits)
 
         for( y = 0; y < 4; y++ )
         {