Commit 5c4482e7 authored by stefano's avatar stefano

Drop the deprecated function register_avcodec() at the next major

version bump.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17028 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 26d8cad2
...@@ -2604,10 +2604,12 @@ unsigned avcodec_version(void); ...@@ -2604,10 +2604,12 @@ unsigned avcodec_version(void);
*/ */
void avcodec_init(void); void avcodec_init(void);
#if LIBAVCODEC_VERSION_MAJOR < 53
/** /**
* @deprecated Deprecated in favor of avcodec_register(). * @deprecated Deprecated in favor of avcodec_register().
*/ */
attribute_deprecated void register_avcodec(AVCodec *codec); attribute_deprecated void register_avcodec(AVCodec *codec);
#endif
/** /**
* Register the codec \p codec and initialize libavcodec. * Register the codec \p codec and initialize libavcodec.
......
...@@ -98,10 +98,12 @@ void avcodec_register(AVCodec *codec) ...@@ -98,10 +98,12 @@ void avcodec_register(AVCodec *codec)
codec->next = NULL; codec->next = NULL;
} }
#if LIBAVCODEC_VERSION_MAJOR < 53
void register_avcodec(AVCodec *codec) void register_avcodec(AVCodec *codec)
{ {
avcodec_register(codec); avcodec_register(codec);
} }
#endif
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
s->coded_width = width; s->coded_width = width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment