[FFmpeg-cvslog] rtpproto: Check the right feature detection macro

Martin Storsjö git at videolan.org
Fri Aug 16 12:36:36 CEST 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Aug 15 10:36:20 2013 +0300| [4b054a3400f728c54470ee6a1eefe1d82420f6a2] | committer: Martin Storsjö

rtpproto: Check the right feature detection macro

IPPROTO_IPV6 is unrelated here (it's only used in udp.c for
multicast sockopts), check for support for the sockaddr_in6
struct itself.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

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

diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 4cc69fb..0f31539 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -118,7 +118,7 @@ static int compare_addr(const struct sockaddr_storage *a,
                 ((const struct sockaddr_in *)b)->sin_addr.s_addr);
     }
 
-#if defined(IPPROTO_IPV6)
+#if HAVE_STRUCT_SOCKADDR_IN6
     if (a->ss_family == AF_INET6) {
         const uint8_t *s6_addr_a = ((const struct sockaddr_in6 *)a)->sin6_addr.s6_addr;
         const uint8_t *s6_addr_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr;



More information about the ffmpeg-cvslog mailing list