changeset 949:be4cc14c16c2 libavutil

Add missing parentheses in MKTAG and MKBETAG macros.
author benoit
date Tue, 22 Jun 2010 15:02:09 +0000
parents 815c9d5b23a7
children 7362675c3e0a
files common.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Mon Jun 21 10:35:50 2010 +0000
+++ b/common.h	Tue Jun 22 15:02:09 2010 +0000
@@ -178,8 +178,8 @@
     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)