summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/aes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c
index 9eb2bb393c..fd8706089c 100644
--- a/libavutil/aes.c
+++ b/libavutil/aes.c
@@ -62,9 +62,9 @@ static uint32_t dec_multbl[4][256];
#endif
#if HAVE_BIGENDIAN
-# define ROT(x, s) ((x >> s) | (x << (32-s)))
+# define ROT(x, s) (((x) >> (s)) | ((x) << (32-(s))))
#else
-# define ROT(x, s) ((x << s) | (x >> (32-s)))
+# define ROT(x, s) (((x) << (s)) | ((x) >> (32-(s))))
#endif
static inline void addkey(av_aes_block *dst, const av_aes_block *src,