Revision 5a8693ef libavformat/sdp.c

View differences:

libavformat/sdp.c
94 94
    memset(&hints, 0, sizeof(hints));
95 95
    if (getaddrinfo(dest_addr, NULL, &hints, &ai))
96 96
        return;
97
        getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
98
                    NULL, 0, NI_NUMERICHOST);
99
        if (ai->ai_family == AF_INET6)
100
            av_strlcpy(type, "IP6", type_size);
97
    getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
98
                NULL, 0, NI_NUMERICHOST);
99
    if (ai->ai_family == AF_INET6)
100
        av_strlcpy(type, "IP6", type_size);
101 101
    freeaddrinfo(ai);
102 102
}
103 103
#else

Also available in: Unified diff