From 0261e3651a9e09bd661fd338a79e04bc0a02cf71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Fri, 11 Jul 2008 15:25:12 +0000 Subject: [PATCH] Deprecate avcodec_build(), it returns the same value as avcodec_version(). Originally committed as revision 14169 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/avcodec.h | 4 +++- libavcodec/utils.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 5fb945ca90..f7532f74bf 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2516,8 +2516,10 @@ AVCodec *av_codec_next(AVCodec *c); /* returns LIBAVCODEC_VERSION_INT constant */ unsigned avcodec_version(void); +#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) /* returns LIBAVCODEC_BUILD constant */ -unsigned avcodec_build(void); +attribute_deprecated unsigned avcodec_build(void); +#endif /** * Initializes libavcodec. diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 3c7108da45..2c31c78282 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1200,10 +1200,12 @@ unsigned avcodec_version( void ) return LIBAVCODEC_VERSION_INT; } +#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) unsigned avcodec_build( void ) { return LIBAVCODEC_BUILD; } +#endif void avcodec_init(void) {