From: Michael Niedermayer Date: Tue, 30 Jul 2013 09:31:08 +0000 (+0200) Subject: Merge commit '3357bccc5cb31795f248cd72dc480025f3075a5b' X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=15ca3ab82531e907c810674fc2c79e5e0b522c74;hp=c7d17179571daa875083e2fe72c498ae47772d75;p=ffmpeg Merge commit '3357bccc5cb31795f248cd72dc480025f3075a5b' * commit '3357bccc5cb31795f248cd72dc480025f3075a5b': udp: Allow specifying multicast include/blocks as host names as well Merged-by: Michael Niedermayer --- diff --git a/libavformat/udp.c b/libavformat/udp.c index 744b9906c73..033438869ab 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -237,7 +237,7 @@ static int udp_set_multicast_sources(int sockfd, struct sockaddr *addr, int level = addr->sa_family == AF_INET ? IPPROTO_IP : IPPROTO_IPV6; struct addrinfo *sourceaddr = udp_resolve_host(sources[i], 0, SOCK_DGRAM, AF_UNSPEC, - AI_NUMERICHOST); + 0); if (!sourceaddr) return AVERROR(ENOENT); @@ -267,7 +267,7 @@ static int udp_set_multicast_sources(int sockfd, struct sockaddr *addr, struct ip_mreq_source mreqs; struct addrinfo *sourceaddr = udp_resolve_host(sources[i], 0, SOCK_DGRAM, AF_UNSPEC, - AI_NUMERICHOST); + 0); if (!sourceaddr) return AVERROR(ENOENT); if (sourceaddr->ai_addr->sa_family != AF_INET) {