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

Rémi Denis-Courmont remi at remlab.net
Mon Mar 25 09:13:26 CET 2013


On Mon, 25 Mar 2013 08:36:21 +0100, Zoran Turalija
<zoran.turalija at gmail.com> wrote:
> 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))

Seems to me that the macro definition is wrong, not the number of
parenthesis.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list