Call avformat_network_init/deinit in the programs
[ffmpeg.git] / avconv.c
index 8f86c00..7c0e78a 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -542,6 +542,7 @@ void exit_program(int ret)
 #if CONFIG_AVFILTER
     avfilter_uninit();
 #endif
+    avformat_network_deinit();
 
     if (received_sigterm) {
         av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n",
@@ -4218,6 +4219,7 @@ int main(int argc, char **argv)
     avfilter_register_all();
 #endif
     av_register_all();
+    avformat_network_init();
 
     avio_set_interrupt_cb(decode_interrupt_cb);