aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-05-09 20:32:35 +0000
committerMåns Rullgård <mans@mansr.com>2010-05-09 20:32:35 +0000
commitcc6849ae50b419443bcce31eacb9d57b83291eac (patch)
tree6925daff9544bcd1c82d6037daab5832dbf500eb
parent0613ece542421ddcbd061f355ad50ad9f2bb734a (diff)
downloadffmpeg-cc6849ae50b419443bcce31eacb9d57b83291eac.tar.gz
bswap: 10L add missing parens around macro args
Originally committed as revision 23070 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavutil/bswap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/bswap.h b/libavutil/bswap.h
index 2d36f2e2ea..6dd2a3511a 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)