mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
Reindent
Originally committed as revision 24919 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7ad526d288
commit
5a8693ef59
@ -94,10 +94,10 @@ static void resolve_destination(char *dest_addr, int size, char *type,
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
if (getaddrinfo(dest_addr, NULL, &hints, &ai))
|
||||
return;
|
||||
getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
|
||||
NULL, 0, NI_NUMERICHOST);
|
||||
if (ai->ai_family == AF_INET6)
|
||||
av_strlcpy(type, "IP6", type_size);
|
||||
getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
|
||||
NULL, 0, NI_NUMERICHOST);
|
||||
if (ai->ai_family == AF_INET6)
|
||||
av_strlcpy(type, "IP6", type_size);
|
||||
freeaddrinfo(ai);
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user