From cc6849ae50b419443bcce31eacb9d57b83291eac Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 9 May 2010 20:32:35 +0000 Subject: [PATCH] bswap: 10L add missing parens around macro args Originally committed as revision 23070 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/bswap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/bswap.h b/libavutil/bswap.h index 2d36f2e..6dd2a35 100644 --- a/libavutil/bswap.h +++ b/libavutil/bswap.h @@ -43,8 +43,8 @@ #endif #define AV_BSWAP16C(x) (((x) << 8 & 0xff00) | ((x) >> 8 & 0x00ff)) -#define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C(x >> 16)) -#define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C(x >> 32)) +#define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16)) +#define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32)) #define AV_BSWAPC(s, x) AV_BSWAP##s##C(x) -- 2.7.4