From: Jean-Baptiste Kempf Date: Fri, 28 Aug 2009 10:23:06 +0000 (+0200) Subject: Avcodec: proper warning if build is < 52.25 X-Git-Tag: 1.1.0-ff~3811 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6955322af139da2eaa9307334846d8603fb5af3f;p=vlc Avcodec: proper warning if build is < 52.25 --- diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c index 59d4798544..ca6c75f61f 100644 --- a/modules/codec/avcodec/avcodec.c +++ b/modules/codec/avcodec/avcodec.c @@ -44,10 +44,13 @@ # include #endif -#if LIBAVCODEC_BUILD < 5000 -# error You must have a libavcodec >= 5000 (get svn) +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 51, 48, 0 ) +# error You must update libavcodec to a version >= 51.48.0 +#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 52, 25, 0 ) +# warning You should update libavcodec to get subtitle support #endif + #include "avcodec.h" #include "avutil.h"