You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Merge commit '00b62968d079e63bf22028f253ac297292436ebe'
* commit '00b62968d079e63bf22028f253ac297292436ebe': os_support: Don't try to return the service name as a string in getnameinfo Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -1808,7 +1808,6 @@ SYSTEM_FUNCS=" | ||||
|     GetProcessMemoryInfo | ||||
|     GetProcessTimes | ||||
|     getrusage | ||||
|     getservbyport | ||||
|     GetSystemTimeAsFileTime | ||||
|     gettimeofday | ||||
|     glob | ||||
| @@ -5106,7 +5105,6 @@ nvenc_encoder_extralibs='$ldl' | ||||
|  | ||||
| if ! disabled network; then | ||||
|     check_func getaddrinfo $network_extralibs | ||||
|     check_func getservbyport $network_extralibs | ||||
|     check_func inet_aton $network_extralibs | ||||
|  | ||||
|     check_type netdb.h "struct addrinfo" | ||||
|   | ||||
| @@ -205,16 +205,9 @@ int ff_getnameinfo(const struct sockaddr *sa, int salen, | ||||
|     } | ||||
|  | ||||
|     if (serv && servlen > 0) { | ||||
|         struct servent *ent = NULL; | ||||
| #if HAVE_GETSERVBYPORT | ||||
|         if (!(flags & NI_NUMERICSERV)) | ||||
|             ent = getservbyport(sin->sin_port, flags & NI_DGRAM ? "udp" : "tcp"); | ||||
| #endif /* HAVE_GETSERVBYPORT */ | ||||
|  | ||||
|         if (ent) | ||||
|             snprintf(serv, servlen, "%s", ent->s_name); | ||||
|         else | ||||
|             snprintf(serv, servlen, "%d", ntohs(sin->sin_port)); | ||||
|             return EAI_FAIL; | ||||
|         snprintf(serv, servlen, "%d", ntohs(sin->sin_port)); | ||||
|     } | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user