is_output = (flags & URL_WRONLY);
+ if(!ff_network_init())
+ return AVERROR(EIO);
+
s = av_mallocz(sizeof(UDPContext));
if (!s)
return AVERROR(ENOMEM);
udp_set_remote_url(h, uri);
}
- if(!ff_network_init())
- return AVERROR(EIO);
-
if (s->is_multicast && !(h->flags & URL_WRONLY))
s->local_port = port;
udp_fd = udp_socket_create(s, &my_addr, &len);