aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-25 03:27:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-23 18:17:42 +0200
commitea7fbd0b1699dd832b66691a8960e1e000be7e9a (patch)
tree2216eedb65cfdb7677c9f88b7d7144558af9c050
parentb2b4df8d51b3636776fb68e0aca8261c232ea417 (diff)
downloadffmpeg-ea7fbd0b1699dd832b66691a8960e1e000be7e9a.tar.gz
avcodec/golomb-test: fix () in EXTEND() macro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 97e6b5ee3a16fee7d130f19f4dcee030f14d91cf) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/golomb-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/golomb-test.c b/libavcodec/golomb-test.c
index 8adcdf63d8..2dfe917144 100644
--- a/libavcodec/golomb-test.c
+++ b/libavcodec/golomb-test.c
@@ -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));