Browse Source

Deprecate avcodec_build(), it returns the same value as

avcodec_version().

Originally committed as revision 14169 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Andreas Öman 17 years ago
parent
commit
0261e3651a
2 changed files with 5 additions and 1 deletions
  1. +3
    -1
      libavcodec/avcodec.h
  2. +2
    -0
      libavcodec/utils.c

+ 3
- 1
libavcodec/avcodec.h View 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.


+ 2
- 0
libavcodec/utils.c View 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)
{


Loading…
Cancel
Save