Commit 82505611 authored by Reimar Döffinger's avatar Reimar Döffinger

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
parent 78db142a
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment