diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/avformat/avformat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/avformat/avformat.c b/modules/avformat/avformat.c index 41ee243..64f6a4f 100644 --- a/modules/avformat/avformat.c +++ b/modules/avformat/avformat.c @@ -346,6 +346,11 @@ static int module_init(void) /* register all codecs, demux and protocols */ avcodec_register_all(); avdevice_register_all(); + +#if LIBAVFORMAT_VERSION_INT >= ((53<<16) + (13<<8) + 0) + avformat_network_init(); +#endif + av_register_all(); return vidsrc_register(&mod_avf, "avformat", alloc, NULL); @@ -355,6 +360,11 @@ static int module_init(void) static int module_close(void) { mod_avf = mem_deref(mod_avf); + +#if LIBAVFORMAT_VERSION_INT >= ((53<<16) + (13<<8) + 0) + avformat_network_deinit(); +#endif + return 0; } |