avutil/version: Add () to protect the AV_VERSION_INT() arguments
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:17:21 +0000 (00:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:17:47 +0000 (00:17 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/version.h

index 053bd99..73bf398 100644 (file)
@@ -32,7 +32,7 @@
  * @{
  */
 
-#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
+#define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)