[FFmpeg-cvslog] swscale/bayer_template: Add () to protect the argument of BAYER_READ()

Michael Niedermayer git at videolan.org
Wed Feb 18 02:18:04 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 18 01:55:15 2015 +0100| [d501b986a97634ddcc53a4cb62e69e01042e9366] | committer: Michael Niedermayer

swscale/bayer_template: Add () to protect the argument of BAYER_READ()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d501b986a97634ddcc53a4cb62e69e01042e9366
---

 libswscale/bayer_template.c |    4 ++--
 1 file 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



More information about the ffmpeg-cvslog mailing list