[FFmpeg-cvslog] r17028 - in trunk/libavcodec: avcodec.h utils.c

stefano subversion
Sat Feb 7 00:54:51 CET 2009


Author: stefano
Date: Sat Feb  7 00:54:50 2009
New Revision: 17028

Log:
Drop the deprecated function register_avcodec() at the next major
version bump.

Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	Sat Feb  7 00:50:54 2009	(r17027)
+++ trunk/libavcodec/avcodec.h	Sat Feb  7 00:54:50 2009	(r17028)
@@ -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.

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Sat Feb  7 00:50:54 2009	(r17027)
+++ trunk/libavcodec/utils.c	Sat Feb  7 00:54:50 2009	(r17028)
@@ -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;




More information about the ffmpeg-cvslog mailing list