OSDN Git Service

swscale/bayer_template: Add () to protect the argument of BAYER_READ()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Feb 2015 00:55:15 +0000 (01:55 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Feb 2015 00:55:15 +0000 (01:55 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/bayer_template.c

index 67ab2ae..1af1b60 100644 (file)
 #define BAYER_SHIFT   0
 #endif
 #if defined(BAYER_16LE)
-#define BAYER_READ(x) AV_RL16(&x)
+#define BAYER_READ(x) AV_RL16(&(x))
 #define BAYER_SIZEOF  2
 #define BAYER_SHIFT   8
 #endif
 #if defined(BAYER_16BE)
-#define BAYER_READ(x) AV_RB16(&x)
+#define BAYER_READ(x) AV_RB16(&(x))
 #define BAYER_SIZEOF  2
 #define BAYER_SHIFT   8
 #endif