]> granicus.if.org Git - libx264/commitdiff
MSVC compatibility fixes
authorLoren Merritt <pengvado@videolan.org>
Fri, 30 Dec 2005 08:26:42 +0000 (08:26 +0000)
committerLoren Merritt <pengvado@videolan.org>
Fri, 30 Dec 2005 08:26:42 +0000 (08:26 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@391 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/cabac.c
encoder/me.c

index 3c3b51f0de15644b328c00696c25a49e7b7ff6a2..a5bb58e4e9e7bb1acfaf1bc25d69a6ca93f2cc10 100644 (file)
@@ -194,13 +194,13 @@ static void x264_cabac_mb_type( x264_t *h, x264_cabac_t *cb )
             static const int i_mb_bits[9*3][7] =
             {
                 { 1,1,0,0,0,1   }, { 1,1,0,0,1,0,  }, { 1,0,0 },       /* L0 L0 */
-                { 1,1,0,1,0,1   }, { 1,1,0,1,1,0   }, {},              /* L0 L1 */
-                { 1,1,1,0,0,0,0 }, { 1,1,1,0,0,0,1 }, {},              /* L0 BI */
-                { 1,1,0,1,1,1   }, { 1,1,1,1,1,0   }, {},              /* L1 L0 */
+                { 1,1,0,1,0,1   }, { 1,1,0,1,1,0   }, {0},             /* L0 L1 */
+                { 1,1,1,0,0,0,0 }, { 1,1,1,0,0,0,1 }, {0},             /* L0 BI */
+                { 1,1,0,1,1,1   }, { 1,1,1,1,1,0   }, {0},             /* L1 L0 */
                 { 1,1,0,0,1,1   }, { 1,1,0,1,0,0   }, { 1,0,1 },       /* L1 L1 */
-                { 1,1,1,0,0,1,0 }, { 1,1,1,0,0,1,1 }, {},              /* L1 BI */
-                { 1,1,1,0,1,0,0 }, { 1,1,1,0,1,0,1 }, {},              /* BI L0 */
-                { 1,1,1,0,1,1,0 }, { 1,1,1,0,1,1,1 }, {},              /* BI L1 */
+                { 1,1,1,0,0,1,0 }, { 1,1,1,0,0,1,1 }, {0},             /* L1 BI */
+                { 1,1,1,0,1,0,0 }, { 1,1,1,0,1,0,1 }, {0},             /* BI L0 */
+                { 1,1,1,0,1,1,0 }, { 1,1,1,0,1,1,1 }, {0},             /* BI L1 */
                 { 1,1,1,1,0,0,0 }, { 1,1,1,1,0,0,1 }, { 1,1,0,0,0,0 }, /* BI BI */
             };
 
index 26ec3f476b22bbbfa011deef4f7ecc5a07516e48..66207613cc3aa9ca6f210e2a87298c5ae7a4f2a2 100644 (file)
@@ -459,8 +459,8 @@ static void refine_subpel( x264_t *h, x264_me_t *m, int hpel_iters, int qpel_ite
 }
 
 #define BIME_CACHE2(a,b) \
-    BIME_CACHE( a, b) \
-    BIME_CACHE(-a,-b)
+    BIME_CACHE(a,b) \
+    BIME_CACHE(-(a),-(b))
 
 #define COST_BIMV_SATD( m0x, m0y, m1x, m1y ) \
 if( pass == 0 || !visited[(m0x)&7][(m0y)&7][(m1x)&7][(m1y)&7] ) \
@@ -491,8 +491,8 @@ if( pass == 0 || !visited[(m0x)&7][(m0y)&7][(m1x)&7][(m1y)&7] ) \
     COST_BIMV_SATD(om0x+a, om0y+b, om1x+c, om1y+d)
 
 #define CHECK_BIDIR2(a,b,c,d) \
-    CHECK_BIDIR( a ,b, c, d) \
-    CHECK_BIDIR(-a,-b,-c,-d)
+    CHECK_BIDIR(a,b,c,d) \
+    CHECK_BIDIR(-(a),-(b),-(c),-(d))
 
 #define CHECK_BIDIR8(a,b,c,d) \
     CHECK_BIDIR2(a,b,c,d) \