From 7de77cdb1117cef3df13660b17ce4b0c76159b6e Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 15 Jul 2010 18:46:49 +0000 Subject: gl_common.h: Add () around macro arguments. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31741 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/gl_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvo/gl_common.h') diff --git a/libvo/gl_common.h b/libvo/gl_common.h index 91884e39d2..a637006f5c 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -342,11 +342,11 @@ int loadGPUProgram(GLenum target, char *prog); //! shift value for chrominance scaler type #define YUV_CHROM_SCALER_SHIFT 12 //! extract conversion out of type -#define YUV_CONVERSION(t) (t & YUV_CONVERSION_MASK) +#define YUV_CONVERSION(t) ((t) & YUV_CONVERSION_MASK) //! extract luminance scaler out of type -#define YUV_LUM_SCALER(t) ((t >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK) +#define YUV_LUM_SCALER(t) (((t) >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK) //! extract chrominance scaler out of type -#define YUV_CHROM_SCALER(t) ((t >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK) +#define YUV_CHROM_SCALER(t) (((t) >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK) /** \} */ typedef struct { -- cgit v1.2.3