diff options
Diffstat (limited to 'libavformat')
-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)) |