aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-25 03:27:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 16:35:24 +0200
commitdb6f3be9418c0a4efaf4262b931e92cda41d37ff (patch)
treefff21a314ee16e54e5c8394d7f7bd2b57b88f248 /libavcodec
parent2f1f4070446e5407f562b2a3b8b675efae37e944 (diff)
downloadffmpeg-db6f3be9418c0a4efaf4262b931e92cda41d37ff.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>
Diffstat (limited to 'libavcodec')
-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));