mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/aes: Add () to protect the ROT() arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
06309fc704
commit
52d1929000
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue