| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * copyright (c) 2007 Luca Abeni | 2  * copyright (c) 2007 Luca Abeni | 
| 3  * | 3  * | 
| 4  * This file is part of FFmpeg. | 4  * This file is part of FFmpeg. | 
| 5  * | 5  * | 
| 6  * FFmpeg is free software; you can redistribute it and/or | 6  * FFmpeg is free software; you can redistribute it and/or | 
| 7  * modify it under the terms of the GNU Lesser General Public | 7  * modify it under the terms of the GNU Lesser General Public | 
| 8  * License as published by the Free Software Foundation; either | 8  * License as published by the Free Software Foundation; either | 
| 9  * version 2.1 of the License, or (at your option) any later version. | 9  * version 2.1 of the License, or (at your option) any later version. | 
| 10  * | 10  * | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 92         return 0; | 92         return 0; | 
| 93 | 93 | 
| 94     /* Resolve the destination, since it must be written | 94     /* Resolve the destination, since it must be written | 
| 95      * as a numeric IP address in the SDP. */ | 95      * as a numeric IP address in the SDP. */ | 
| 96 | 96 | 
| 97     memset(&hints, 0, sizeof(hints)); | 97     memset(&hints, 0, sizeof(hints)); | 
| 98     if (getaddrinfo(dest_addr, NULL, &hints, &ai)) | 98     if (getaddrinfo(dest_addr, NULL, &hints, &ai)) | 
| 99         return 0; | 99         return 0; | 
| 100     getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size, | 100     getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size, | 
| 101                 NULL, 0, NI_NUMERICHOST); | 101                 NULL, 0, NI_NUMERICHOST); | 
|  | 102 #ifdef AF_INET6 | 
| 102     if (ai->ai_family == AF_INET6) | 103     if (ai->ai_family == AF_INET6) | 
| 103         av_strlcpy(type, "IP6", type_size); | 104         av_strlcpy(type, "IP6", type_size); | 
|  | 105 #endif | 
| 104     is_multicast = ff_is_multicast_address(ai->ai_addr); | 106     is_multicast = ff_is_multicast_address(ai->ai_addr); | 
| 105     freeaddrinfo(ai); | 107     freeaddrinfo(ai); | 
| 106     return is_multicast; | 108     return is_multicast; | 
| 107 } | 109 } | 
| 108 #else | 110 #else | 
| 109 static int resolve_destination(char *dest_addr, int size, char *type, | 111 static int resolve_destination(char *dest_addr, int size, char *type, | 
| 110                                int type_size) | 112                                int type_size) | 
| 111 { | 113 { | 
| 112     return 0; | 114     return 0; | 
| 113 } | 115 } | 
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 523 #else | 525 #else | 
| 524 int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) | 526 int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) | 
| 525 { | 527 { | 
| 526     return AVERROR(ENOSYS); | 528     return AVERROR(ENOSYS); | 
| 527 } | 529 } | 
| 528 | 530 | 
| 529 void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
     t_addr, const char *dest_type, int port, int ttl) | 531 void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
     t_addr, const char *dest_type, int port, int ttl) | 
| 530 { | 532 { | 
| 531 } | 533 } | 
| 532 #endif | 534 #endif | 
| OLD | NEW | 
|---|