diff stream/stream_ffmpeg.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 77d81e27a176
children 36ef1a75aa48
line wrap: on
line diff
--- a/stream/stream_ffmpeg.c	Tue Aug 09 19:23:41 2011 +0000
+++ b/stream/stream_ffmpeg.c	Tue Aug 09 19:57:00 2011 +0000
@@ -24,6 +24,7 @@
 #include "stream.h"
 #include "m_option.h"
 #include "m_struct.h"
+#include "av_helpers.h"
 
 static int fill_buffer(stream_t *s, char *buffer, int max_len)
 {
@@ -87,7 +88,7 @@
     int64_t size;
     int dummy;
 
-    av_register_all();
+    init_avformat();
     if (mode == STREAM_READ)
         flags = URL_RDONLY;
     else if (mode == STREAM_WRITE)