diff options
author | Ed Torbett <ed.torbett@simulation-systems.co.uk> | 2013-07-26 21:54:29 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-07-29 22:58:53 +0300 |
commit | 3357bccc5cb31795f248cd72dc480025f3075a5b (patch) | |
tree | a405cc58b716d5ed6179bd5ff34466cf5aeb753c | |
parent | 0e8c6f221a8ddb7dfb3c9e9bd0b33cb12e9391b8 (diff) | |
download | ffmpeg-3357bccc5cb31795f248cd72dc480025f3075a5b.tar.gz |
udp: Allow specifying multicast include/blocks as host names as well
Previously this only allowed literal IP addresses. When these
are conveyed in a SDP file as in RFC4570, host names are allowed
as well.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 373a4c97a8..50b42c647d 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -181,7 +181,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); @@ -211,7 +211,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) { |