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

Multimedia / FFmpeg - Michael Niedermayer [gmx.at] - 16 February 2015 17:17 UTC



###

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)

9cde41c avutil/version: Add () to protect the AV_VERSION_INT() arguments
libavutil/version.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

  • Share