[FFmpeg-cvslog] avutil/version: Add () to protect the AV_VERSION_INT() arguments

Michael Niedermayer git at videolan.org
Tue Feb 17 00:30:38 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 17 00:17:21 2015 +0100| [9cde41cdb511f20cd9dfd66c36b1837023e4fec8] | committer: Michael Niedermayer

avutil/version: Add () to protect the AV_VERSION_INT() arguments

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

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

 libavutil/version.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/version.h b/libavutil/version.h
index 053bd99..73bf398 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -32,7 +32,7 @@
  * @{
  */
 
-#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
+#define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
 



More information about the ffmpeg-cvslog mailing list