[FFmpeg-cvslog] avformat/udp: remove IPPROTO_IPV6 macro

Limin Wang git at videolan.org
Sat Feb 12 02:43:42 EET 2022


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sat Feb  5 10:02:55 2022 +0800| [e8f439631f8cb87a214946842962f82c5b91acb9] | committer: Limin Wang

avformat/udp: remove IPPROTO_IPV6 macro

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8f439631f8cb87a214946842962f82c5b91acb9
---

 libavformat/udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 143f4b92c0..3b36a4a094 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;



More information about the ffmpeg-cvslog mailing list