[FFmpeg-cvslog] r25528 - trunk/libavformat/sdp.c
mstorsjo
subversion
Tue Oct 19 09:50:40 CEST 2010
Author: mstorsjo
Date: Tue Oct 19 09:50:40 2010
New Revision: 25528
Log:
sdp: Conditionally compile code using AF_INET6
Should fix compilation in environments unaware of IPv6.
Modified:
trunk/libavformat/sdp.c
Modified: trunk/libavformat/sdp.c
==============================================================================
--- trunk/libavformat/sdp.c Tue Oct 19 09:38:53 2010 (r25527)
+++ trunk/libavformat/sdp.c Tue Oct 19 09:50:40 2010 (r25528)
@@ -99,8 +99,10 @@ static int resolve_destination(char *des
return 0;
getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
NULL, 0, NI_NUMERICHOST);
+#ifdef AF_INET6
if (ai->ai_family == AF_INET6)
av_strlcpy(type, "IP6", type_size);
+#endif
is_multicast = ff_is_multicast_address(ai->ai_addr);
freeaddrinfo(ai);
return is_multicast;
More information about the ffmpeg-cvslog
mailing list