Initialize global network.

This is recommended, since it avoids the overhead of implicitly doing
the setup for each session.

This avoids the following warning message when the input is over HTTP:

Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.