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
This commit is contained in:
Reimar Döffinger 2010-07-28 16:27:16 +00:00
parent 78db142acb
commit 8250561149

View File

@ -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))