avutil/aes: Add () to protect the ROT() arguments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-02-17 00:22:42 +01:00
parent 06309fc704
commit 52d1929000
1 changed files with 2 additions and 2 deletions

View File

@ -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,