[MPlayer-cvslog] r31741 - trunk/libvo/gl_common.h
reimar
subversion at mplayerhq.hu
Thu Jul 15 20:46:49 CEST 2010
Author: reimar
Date: Thu Jul 15 20:46:49 2010
New Revision: 31741
Log:
Add () around macro arguments.
Modified:
trunk/libvo/gl_common.h
Modified: trunk/libvo/gl_common.h
==============================================================================
--- trunk/libvo/gl_common.h Thu Jul 15 20:36:15 2010 (r31740)
+++ trunk/libvo/gl_common.h Thu Jul 15 20:46:49 2010 (r31741)
@@ -340,11 +340,11 @@ int loadGPUProgram(GLenum target, char *
//! 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 {
More information about the MPlayer-cvslog
mailing list