OSDN Git Service

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>
Mon, 23 Jun 2014 14:51:09 +0000 (16:51 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 97e6b5ee3a16fee7d130f19f4dcee030f14d91cf)

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));