Call avformat_network_init/deinit in the programs
[ffmpeg.git] / avplay.c
index 58db596..c67cc75 100644 (file)
--- a/avplay.c
+++ b/avplay.c
@@ -1259,6 +1259,7 @@ static void do_exit(void)
 #if CONFIG_AVFILTER
     avfilter_uninit();
 #endif
+    avformat_network_deinit();
     if (show_status)
         printf("\n");
     SDL_Quit();
@@ -3066,6 +3067,7 @@ int main(int argc, char **argv)
     avfilter_register_all();
 #endif
     av_register_all();
+    avformat_network_init();
 
     init_opts();