[FFmpeg-cvslog] r23711 - trunk/libavutil/common.h

benoit subversion
Tue Jun 22 17:02:09 CEST 2010


Author: benoit
Date: Tue Jun 22 17:02:09 2010
New Revision: 23711

Log:
Add missing parentheses in MKTAG and MKBETAG macros.

Modified:
   trunk/libavutil/common.h

Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h	Tue Jun 22 16:15:00 2010	(r23710)
+++ trunk/libavutil/common.h	Tue Jun 22 17:02:09 2010	(r23711)
@@ -178,8 +178,8 @@ static inline av_const int av_ceil_log2(
     return av_log2((x - 1) << 1);
 }
 
-#define MKTAG(a,b,c,d) (a | (b << 8) | (c << 16) | (d << 24))
-#define MKBETAG(a,b,c,d) (d | (c << 8) | (b << 16) | (a << 24))
+#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
+#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((a) << 24))
 
 /*!
  * \def GET_UTF8(val, GET_BYTE, ERROR)



More information about the ffmpeg-cvslog mailing list