diff libmpdemux/demux_lavf.c @ 33871:30f5e5cd3676

Move code for setting up libav* logging callbacks from vd_ffmpeg to a separate file and also use it when only initializing libavformat.
author reimar
date Tue, 09 Aug 2011 19:57:00 +0000
parents 3348a9e99214
children 82b5070214cc
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Tue Aug 09 19:23:41 2011 +0000
+++ b/libmpdemux/demux_lavf.c	Tue Aug 09 19:57:00 2011 +0000
@@ -27,6 +27,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "av_opts.h"
+#include "av_helpers.h"
 
 #include "stream/stream.h"
 #include "aviprint.h"
@@ -154,7 +155,7 @@
         demuxer->priv=calloc(sizeof(lavf_priv_t),1);
     priv= demuxer->priv;
 
-    av_register_all();
+    init_avformat();
 
     if (opt_format) {
         if (strcmp(opt_format, "help") == 0) {