[vlc-devel] [PATCH] Avcodec: Compile again with FFmpeg libavcodec library.

Zoran Turalija zoran.turalija at gmail.com
Mon Mar 25 08:36:21 CET 2013


Make fails when using FFmpeg libavcodec version newer than checked by
LIBAVCODEC_VERSION_CHECK, because of redeclaration of many enumerators,
that are unnecessary with newer version of libavcodec library.
It is due to missing parenthesis.

Probably same with libav libavcodec library, too.
---
 modules/codec/avcodec/avcommon_compat.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/avcommon_compat.h b/modules/codec/avcodec/avcommon_compat.h
index 9cf651e..b66518f 100644
--- a/modules/codec/avcodec/avcommon_compat.h
+++ b/modules/codec/avcodec/avcommon_compat.h
@@ -111,7 +111,7 @@
 
 #endif /* LIBAVCODEC_VERSION_MAJOR < 54 */
 
-#if !LIBAVCODEC_VERSION_CHECK(54, 25, 0, 51, 100)
+#if !(LIBAVCODEC_VERSION_CHECK(54, 25, 0, 51, 100))
 #define AVCodecID CodecID
 
 enum {
-- 
1.7.10.4


-- 
Kind regards,
Zoran Turalija



More information about the vlc-devel mailing list