Deprecate avcodec_build(), it returns the same value as
authorAndreas Öman <andreas@lonelycoder.com>
Fri, 11 Jul 2008 15:25:12 +0000 (15:25 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Fri, 11 Jul 2008 15:25:12 +0000 (15:25 +0000)
avcodec_version().

Originally committed as revision 14169 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h
libavcodec/utils.c

index 5fb945c..f7532f7 100644 (file)
@@ -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.
index 3c7108d..2c31c78 100644 (file)
@@ -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)
 {