From 82505611493fc473359ceba2f32509557c790bae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Wed, 28 Jul 2010 16:27:16 +0000 Subject: [PATCH] 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 --- libavformat/udp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 6bd5c9c395..3636d8c8ff 100644 --- a/libavformat/udp.c +++ b/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)) -- 2.11.0