aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-17 00:18:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-17 00:18:15 +0100
commitcdee0c9d5feda0adb7e966bb524bc3e2ab3da27b (patch)
tree173de6e6704e7b05236370ef91d850edc6fbdb14
parent9cde41cdb511f20cd9dfd66c36b1837023e4fec8 (diff)
downloadffmpeg-cdee0c9d5feda0adb7e966bb524bc3e2ab3da27b.tar.gz
avutil/murmur3: Add () to protect the ROT() arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/murmur3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/murmur3.c b/libavutil/murmur3.c
index 701fa6a0ff..c4d8dcb529 100644
--- a/libavutil/murmur3.c
+++ b/libavutil/murmur3.c
@@ -49,7 +49,7 @@ void av_murmur3_init(AVMurMur3 *c)
static const uint64_t c1 = UINT64_C(0x87c37b91114253d5);
static const uint64_t c2 = UINT64_C(0x4cf5ad432745937f);
-#define ROT(a, b) ((a << b) | (a >> (64 - b)))
+#define ROT(a, b) (((a) << (b)) | ((a) >> (64 - (b))))
static uint64_t inline get_k1(const uint8_t *src)
{