# HG changeset patch # User andoma # Date 1215789912 0 # Node ID 239031d2061791c6dd705d071b2b0e1c71ce0af1 # Parent 2552555c8a92cd964c41905c482d7293d3ecdfa5 Deprecate avcodec_build(), it returns the same value as avcodec_version(). diff -r 2552555c8a92 -r 239031d20617 avcodec.h --- a/avcodec.h Fri Jul 11 07:48:37 2008 +0000 +++ b/avcodec.h Fri Jul 11 15:25:12 2008 +0000 @@ -2516,8 +2516,10 @@ /* 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 -r 2552555c8a92 -r 239031d20617 utils.c --- a/utils.c Fri Jul 11 07:48:37 2008 +0000 +++ b/utils.c Fri Jul 11 15:25:12 2008 +0000 @@ -1200,10 +1200,12 @@ 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) {