avcodec/golomb-test: fix () in EXTEND() macro
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 May 2014 01:27:56 +0000 (03:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 25 May 2014 01:45:10 +0000 (03:45 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/golomb-test.c

index 8adcdf6..2dfe917 100644 (file)
@@ -58,7 +58,7 @@ int main(void)
         }
     }
 
-#define EXTEND(i) (i << 3 | i & 7)
+#define EXTEND(i) ((i) << 3 | (i) & 7)
     init_put_bits(&pb, temp, SIZE);
     for (i = 0; i < COUNT; i++)
         set_ue_golomb(&pb, EXTEND(i));