mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
78db142acb
commit
8250561149
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user