avutil/log: add () to protect the argument of AV_LOG_C()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:04:22 +0000 (00:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:04:22 +0000 (00:04 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/log.h

index e1ff09b..993a4f5 100644 (file)
@@ -209,7 +209,7 @@ typedef struct AVClass {
  * Requires 256color terminal support. Uses outside debugging is not
  * recommended.
  */
-#define AV_LOG_C(x) (x << 8)
+#define AV_LOG_C(x) ((x) << 8)
 
 /**
  * Send the specified message to the log if the level is less than or equal