changeset 8325:0b905a126bc9 libavcodec

Make register_avcodec() call avcodec_init(). This avoids the possibility to use a registered codec without first initializing libavcodec, which resulted in unexpected behavior.
author stefano
date Sun, 14 Dec 2008 20:04:00 +0000
parents 343f0476fd1d
children 678c7604463e
files avcodec.h utils.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Sun Dec 14 19:36:38 2008 +0000
+++ b/avcodec.h	Sun Dec 14 20:04:00 2008 +0000
@@ -31,7 +31,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR 52
 #define LIBAVCODEC_VERSION_MINOR  6
-#define LIBAVCODEC_VERSION_MICRO  1
+#define LIBAVCODEC_VERSION_MICRO  2
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \
--- a/utils.c	Sun Dec 14 19:36:38 2008 +0000
+++ b/utils.c	Sun Dec 14 20:04:00 2008 +0000
@@ -90,6 +90,7 @@
 void register_avcodec(AVCodec *codec)
 {
     AVCodec **p;
+    avcodec_init();
     p = &first_avcodec;
     while (*p != NULL) p = &(*p)->next;
     *p = codec;