[SCM] libav/experimental: Rename register_avcodec() as avcodec_register() and deprecate the old function name.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:37:02 UTC 2013


The following commit has been merged in the experimental branch:
commit 85662f4935e1a0ff657162acaf1a707250271c53
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Fri Feb 6 23:46:15 2009 +0000

    Rename register_avcodec() as avcodec_register() and deprecate the old
    function name.
    
    Originally committed as revision 17026 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 3f8a3d4..0c1902a 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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 @@ unsigned avcodec_version(void);
 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.
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 26ce057..4f35f75 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -88,7 +88,7 @@ AVCodec *av_codec_next(AVCodec *c){
     else  return first_avcodec;
 }
 
-void register_avcodec(AVCodec *codec)
+void avcodec_register(AVCodec *codec)
 {
     AVCodec **p;
     avcodec_init();
@@ -98,6 +98,11 @@ void register_avcodec(AVCodec *codec)
     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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list