summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-15 18:46:49 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:44 +0200
commit7de77cdb1117cef3df13660b17ce4b0c76159b6e (patch)
tree3a3b0456f1b46a202db5d96fa5009f553f27fc28
parent4f15b55c9bb7ba8831eb73114f6d011fe65b40dd (diff)
downloadmpv-7de77cdb1117cef3df13660b17ce4b0c76159b6e.tar.bz2
mpv-7de77cdb1117cef3df13660b17ce4b0c76159b6e.tar.xz
gl_common.h: Add () around macro arguments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31741 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/gl_common.h6
1 files changed, 3 insertions, 3 deletions
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 {