[FFmpeg-devel] [PATCH v3 3/3] avformat/udp: remove IPPROTO_IPV6 macro

lance.lmwang at gmail.com lance.lmwang at gmail.com
Sat Feb 5 14:31:48 EET 2022


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavformat/udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 1871acf..9f6ab1b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -175,7 +175,7 @@ static int udp_set_multicast_ttl(int sockfd, int mcastTTL,
             cmd      = IP_MULTICAST_TTL;
             break;
 #endif
-#if defined(IPPROTO_IPV6) && defined(IPV6_MULTICAST_HOPS)
+#ifdef IPV6_MULTICAST_HOPS
         case AF_INET6:
             protocol = IPPROTO_IPV6;
             cmd      = IPV6_MULTICAST_HOPS;
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list