changeset 4106:26bd5d91a2d6 libavformat

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 8f778b7c07d0
children 0f0be7c78ece
files allformats.c
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/allformats.c	Sun Dec 14 17:30:18 2008 +0000
+++ b/allformats.c	Sun Dec 14 20:04:00 2008 +0000
@@ -50,7 +50,6 @@
         return;
     initialized = 1;
 
-    avcodec_init();
     avcodec_register_all();
 
     /* (de)muxers */