[FFmpeg-cvslog] avformat/mpc8: Add () to protect MKMPCTAG()s arguments

Michael Niedermayer git at videolan.org
Mon Feb 16 23:58:02 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 16 23:14:27 2015 +0100| [0b638b83c66d50482320000e125aa3701920d451] | committer: Michael Niedermayer

avformat/mpc8: Add () to protect MKMPCTAG()s arguments

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

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

 libavformat/mpc8.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c
index 0015fe4..0cef65f 100644
--- a/libavformat/mpc8.c
+++ b/libavformat/mpc8.c
@@ -27,7 +27,7 @@
 #include "avio_internal.h"
 
 /// Two-byte MPC tag
-#define MKMPCTAG(a, b) (a | (b << 8))
+#define MKMPCTAG(a, b) ((a) | ((b) << 8))
 
 #define TAG_MPCK MKTAG('M','P','C','K')
 



More information about the ffmpeg-cvslog mailing list