diff utils.c @ 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 f19fe0cade86
line wrap: on
line diff
--- 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;