diff --git a/libswscale/bayer_template.c b/libswscale/bayer_template.c index 67ab2aee09..1af1b6056e 100644 --- a/libswscale/bayer_template.c +++ b/libswscale/bayer_template.c @@ -36,12 +36,12 @@ #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