Call avformat_network_init/deinit in the programs