Browse Source

deps-libff: Initialize FFmpeg network

If this is omitted and you use an input that requires the network
you get a warning message about future versions not automatically
doing this for you.
John Bradley 10 years ago
parent
commit
5465fcb4a2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      deps/libff/libff/ff-demuxer.c

+ 2 - 1
deps/libff/libff/ff-demuxer.c

@@ -40,7 +40,8 @@ struct ff_demuxer *ff_demuxer_init()
 	av_register_all();
 	avdevice_register_all();
 	avfilter_register_all();
-
+	avformat_network_init();
+	
 	demuxer = av_mallocz(sizeof(struct ff_demuxer));
 	if (demuxer == NULL)
 		return NULL;