]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Drop the deprecated function register_avcodec() at the next major
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 6 Feb 2009 23:54:50 +0000 (23:54 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 6 Feb 2009 23:54:50 +0000 (23:54 +0000)
version bump.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17028 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/avcodec.h
libavcodec/utils.c

index ea095c97c692137d3073ae1483d951234f619928..c39355ef026da9aeb1b73df375fae4d64a8c118d 100644 (file)
@@ -2604,10 +2604,12 @@ unsigned avcodec_version(void);
  */
 void avcodec_init(void);
 
+#if LIBAVCODEC_VERSION_MAJOR < 53
 /**
  * @deprecated Deprecated in favor of avcodec_register().
  */
 attribute_deprecated void register_avcodec(AVCodec *codec);
+#endif
 
 /**
  * Register the codec \p codec and initialize libavcodec.
index 4f35f759c0efd113aae895f35177425d9c4b2800..b1579aec3b03241dbef34ef5c05f08fc456b109a 100644 (file)
@@ -98,10 +98,12 @@ void avcodec_register(AVCodec *codec)
     codec->next = NULL;
 }
 
+#if LIBAVCODEC_VERSION_MAJOR < 53
 void register_avcodec(AVCodec *codec)
 {
     avcodec_register(codec);
 }
+#endif
 
 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
     s->coded_width = width;