Browse Source

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@martin.st>
tags/n2.1
Martin Storsjö 12 years ago
parent
commit
4b054a3400
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtpproto.c

+ 1
- 1
libavformat/rtpproto.c View File

@@ -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;


Loading…
Cancel
Save