aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-07-28 16:27:16 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-07-28 16:27:16 +0000
commit82505611493fc473359ceba2f32509557c790bae (patch)
treed67f0582f73b08574cc2a98f7f619b40ad3efb28 /libavformat/udp.c
parent78db142acbdc7c754f159b08bc068ff0bce1f21f (diff)
downloadffmpeg-82505611493fc473359ceba2f32509557c790bae.tar.gz
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
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c3
1 files changed, 2 insertions, 1 deletions
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))