mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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
|
#endif
|
||||||
|
|
||||||
#if HAVE_BIGENDIAN
|
#if HAVE_BIGENDIAN
|
||||||
# define ROT(x, s) ((x >> s) | (x << (32-s)))
|
# define ROT(x, s) (((x) >> (s)) | ((x) << (32-(s))))
|
||||||
#else
|
#else
|
||||||
# define ROT(x, s) ((x << s) | (x >> (32-s)))
|
# define ROT(x, s) (((x) << (s)) | ((x) >> (32-(s))))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void addkey(av_aes_block *dst, const av_aes_block *src,
|
static inline void addkey(av_aes_block *dst, const av_aes_block *src,
|
||||||
|
Loading…
Reference in New Issue
Block a user