diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-11-08 00:24:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-11-11 12:24:23 +0100 |
commit | c124981b7964423537a26d04ed64cdaa37bf4039 (patch) | |
tree | 53d7750f7e5af2fbba575622819bf00bd5b93ec4 | |
parent | e2d397a9ef6433304f8cbbe98cd89cd222059806 (diff) | |
download | ffmpeg-c124981b7964423537a26d04ed64cdaa37bf4039.tar.gz |
avutil/cast5: Avoid undefined shift of uint32_t by 32 places
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavutil/cast5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/cast5.c b/libavutil/cast5.c index 0bf8ae9929..e1d2c5cadd 100644 --- a/libavutil/cast5.c +++ b/libavutil/cast5.c @@ -32,7 +32,7 @@ #define IC(x) (((x) >> 8) & 0xff) #define ID(x) ((x) & 0xff) -#define LR(x, c) (((x) << (c)) | ((x) >> (32 - (c)))) +#define LR(x, c) (((x) << (c)) | ((x) >> ((32 - (c)) & 31))) #define F3(l, r, i) \ do { \ |