Hi, The attached patch makes resolve_host in libavformat use getaddrinfo instead of gethostbyname, if getaddrinfo is available. gethostbyname isn't necessarily thread safe (e.g. it isn't on glibc/linux, but on mac os x and windows it is). // Martin