lavf/network: add a ff_log_net_error function.