# HG changeset patch # User stefano # Date 1233963975 0 # Node ID 2528b6a2b5d37605eafc134a197b9b9a411bde14 # Parent 21a41fd79033f478fffac7bed87348ef8ba636fc Rename register_avcodec() as avcodec_register() and deprecate the old function name. diff -r 21a41fd79033 -r 2528b6a2b5d3 avcodec.h --- 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. diff -r 21a41fd79033 -r 2528b6a2b5d3 utils.c --- 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;