summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-18 01:55:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-18 01:55:15 +0100
commitd501b986a97634ddcc53a4cb62e69e01042e9366 (patch)
tree2cf2b522900b583f1d2e3ef06124f4f02915b71b /libswscale
parent0babb896b4352e48bd2157f7ef08b341f55f2d91 (diff)
downloadffmpeg-streaming-d501b986a97634ddcc53a4cb62e69e01042e9366.zip
ffmpeg-streaming-d501b986a97634ddcc53a4cb62e69e01042e9366.tar.gz
swscale/bayer_template: Add () to protect the argument of BAYER_READ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/bayer_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/bayer_template.c b/libswscale/bayer_template.c
index 67ab2ae..1af1b60 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
OpenPOWER on IntegriCloud