[FFmpeg-cvslog] compat/avisynth/windowsPorts/windows2linux: Add () to protect macro arguments
Michael Niedermayer
git at videolan.org
Wed Feb 18 01:50:25 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 18 01:39:57 2015 +0100| [0babb896b4352e48bd2157f7ef08b341f55f2d91] | committer: Michael Niedermayer
compat/avisynth/windowsPorts/windows2linux: Add () to protect macro arguments
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0babb896b4352e48bd2157f7ef08b341f55f2d91
---
compat/avisynth/windowsPorts/windows2linux.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compat/avisynth/windowsPorts/windows2linux.h b/compat/avisynth/windowsPorts/windows2linux.h
index 5476afe..7cf4600 100644
--- a/compat/avisynth/windowsPorts/windows2linux.h
+++ b/compat/avisynth/windowsPorts/windows2linux.h
@@ -52,8 +52,8 @@ namespace avxsynth {
//
// Functions
//
-#define MAKEDWORD(a,b,c,d) ((a << 24) | (b << 16) | (c << 8) | (d))
-#define MAKEWORD(a,b) ((a << 8) | (b))
+#define MAKEDWORD(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
+#define MAKEWORD(a,b) (((a) << 8) | (b))
#define lstrlen strlen
#define lstrcpy strcpy
More information about the ffmpeg-cvslog
mailing list