diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 5cae39ec24..53f93ef961 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1293,7 +1293,8 @@ const char *small_strptime(const char *p, const char *fmt, struct tm *dt); struct in_addr; -int resolve_host(struct in_addr *sin_addr, const char *hostname); +/* Deprecated, use getaddrinfo instead. */ +attribute_deprecated int resolve_host(struct in_addr *sin_addr, const char *hostname); void url_split(char *proto, int proto_size, char *authorization, int authorization_size,