Skip to content

Commit

Permalink
Deprecate avcodec_build(), it returns the same value as
Browse files Browse the repository at this point in the history
avcodec_version().

Originally committed as revision 14169 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
andoma committed Jul 11, 2008
1 parent 876ef93 commit 0261e36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libavcodec/avcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions libavcodec/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0261e36

Please sign in to comment.