changeset 8752:7fd1422a8703 libavcodec

Drop the deprecated function register_avcodec() at the next major version bump.
author stefano
date Fri, 06 Feb 2009 23:54:50 +0000
parents 303929f52007
children 64acd0cc269d
files avcodec.h utils.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Fri Feb 06 23:50:54 2009 +0000
+++ b/avcodec.h	Fri Feb 06 23:54:50 2009 +0000
@@ -2604,10 +2604,12 @@
  */
 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.
--- a/utils.c	Fri Feb 06 23:50:54 2009 +0000
+++ b/utils.c	Fri Feb 06 23:54:50 2009 +0000
@@ -98,10 +98,12 @@
     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;