Check for udp_set_remote_url error.

Fixes issue 1784 (hang with nonsense URL/no network available).

Originally committed as revision 24575 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Reimar Döffinger 15 years ago
parent 78db142acb
commit 8250561149
  1. 3
      libavformat/udp.c

@ -355,7 +355,8 @@ static int udp_open(URLContext *h, const char *uri, int flags)
if (flags & URL_WRONLY)
goto fail;
} else {
udp_set_remote_url(h, uri);
if (udp_set_remote_url(h, uri) < 0)
goto fail;
}
if (s->is_multicast && !(h->flags & URL_WRONLY))

Loading…
Cancel
Save