diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-28 16:27:16 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-28 16:27:16 +0000 |
commit | 82505611493fc473359ceba2f32509557c790bae (patch) | |
tree | d67f0582f73b08574cc2a98f7f619b40ad3efb28 /libavformat/udp.c | |
parent | 78db142acbdc7c754f159b08bc068ff0bce1f21f (diff) | |
download | ffmpeg-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.c | 3 |
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)) |