[SCM] libav/experimental: Deprecate avcodec_build(), it returns the same value as avcodec_version().
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:25:07 UTC 2013
The following commit has been merged in the experimental branch:
commit 0261e3651a9e09bd661fd338a79e04bc0a02cf71
Author: Andreas Öman <andreas at lonelycoder.com>
Date: Fri Jul 11 15:25:12 2008 +0000
Deprecate avcodec_build(), it returns the same value as
avcodec_version().
Originally committed as revision 14169 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 5fb945c..f7532f7 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 3c7108d..2c31c78 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)
{
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list