changeset 8750:2528b6a2b5d3 libavcodec

Rename register_avcodec() as avcodec_register() and deprecate the old function name.
author stefano
date Fri, 06 Feb 2009 23:46:15 +0000
parents 21a41fd79033
children 303929f52007
files avcodec.h utils.c
diffstat 2 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Fri Feb 06 13:04:39 2009 +0000
+++ b/avcodec.h	Fri Feb 06 23:46:15 2009 +0000
@@ -30,7 +30,7 @@
 #include "libavutil/avutil.h"
 
 #define LIBAVCODEC_VERSION_MAJOR 52
-#define LIBAVCODEC_VERSION_MINOR 13
+#define LIBAVCODEC_VERSION_MINOR 14
 #define LIBAVCODEC_VERSION_MICRO  0
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -2605,11 +2605,16 @@
 void avcodec_init(void);
 
 /**
+ * @deprecated Deprecated in favor of avcodec_register().
+ */
+attribute_deprecated void register_avcodec(AVCodec *codec);
+
+/**
  * Register the codec \p codec and initialize libavcodec.
  *
  * @see avcodec_init()
  */
-void register_avcodec(AVCodec *codec);
+void avcodec_register(AVCodec *codec);
 
 /**
  * Finds a registered encoder with a matching codec ID.
--- a/utils.c	Fri Feb 06 13:04:39 2009 +0000
+++ b/utils.c	Fri Feb 06 23:46:15 2009 +0000
@@ -88,7 +88,7 @@
     else  return first_avcodec;
 }
 
-void register_avcodec(AVCodec *codec)
+void avcodec_register(AVCodec *codec)
 {
     AVCodec **p;
     avcodec_init();
@@ -98,6 +98,11 @@
     codec->next = NULL;
 }
 
+void register_avcodec(AVCodec *codec)
+{
+    avcodec_register(codec);
+}
+
 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
     s->coded_width = width;
     s->coded_height= height;