[vlc-devel] [PATCH] avcodec: Correct macro definition in LIBAVUTIL_VERSION_CHECK.
Zoran Turalija
zoran.turalija at gmail.com
Mon Mar 25 21:01:39 CET 2013
Use parenthesis around the expression returned in LIBAVUTIL_VERSION_CHECK,
to avoid problems that can arise in future with some ways macro may be used.
Same as what has been done in LIBAVCODEC_VERSION_CHECK.
---
modules/codec/avcodec/avcommon.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/avcommon.h b/modules/codec/avcodec/avcommon.h
index 3c15f94..90df890 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -41,8 +41,8 @@
* b and c the minor and micro versions of libav
* d and e the minor and micro versions of FFmpeg */
#define LIBAVUTIL_VERSION_CHECK( a, b, c, d, e ) \
- (LIBAVUTIL_VERSION_MICRO < 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( a, b, c ) ) || \
- (LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( a, d, e ) )
+ ( (LIBAVUTIL_VERSION_MICRO < 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( a, b, c ) ) || \
+ (LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( a, d, e ) ) )
unsigned GetVlcDspMask( void );
--
1.7.10.4
--
Kind regards,
Zoran Turalija
More information about the vlc-devel
mailing list