[FFmpeg-cvslog] r17026 - in trunk/libavcodec: avcodec.h utils.c
stefano
subversion
Sat Feb 7 00:46:15 CET 2009
Author: stefano
Date: Sat Feb 7 00:46:15 2009
New Revision: 17026
Log:
Rename register_avcodec() as avcodec_register() and deprecate the old
function name.
Modified:
trunk/libavcodec/avcodec.h
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h Sat Feb 7 00:29:25 2009 (r17025)
+++ trunk/libavcodec/avcodec.h Sat Feb 7 00:46:15 2009 (r17026)
@@ -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.
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Sat Feb 7 00:29:25 2009 (r17025)
+++ trunk/libavcodec/utils.c Sat Feb 7 00:46:15 2009 (r17026)
@@ -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;
More information about the ffmpeg-cvslog
mailing list