[FFmpeg-cvslog] r23204 - in branches/0.6: . libavutil/bswap.h

siretart subversion
Fri May 21 00:45:01 CEST 2010


Author: siretart
Date: Fri May 21 00:45:00 2010
New Revision: 23204

Log:
bswap: 10L add missing parens around macro args

backport r23070 by mru

Modified:
   branches/0.6/   (props changed)
   branches/0.6/libavutil/bswap.h

Modified: branches/0.6/libavutil/bswap.h
==============================================================================
--- branches/0.6/libavutil/bswap.h	Thu May 20 23:27:01 2010	(r23203)
+++ branches/0.6/libavutil/bswap.h	Fri May 21 00:45:00 2010	(r23204)
@@ -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)
 



More information about the ffmpeg-cvslog mailing list