1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

Fix compilation on FreeBSD, use AF_UNSPEC instead of PF_UNSPEC

Originally committed as revision 25416 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2010-10-08 18:07:40 +00:00
parent fcc7f40449
commit d1f676b8d4

View File

@ -106,7 +106,7 @@ static int sap_write_header(AVFormatContext *s)
if (!announce_addr[0]) {
struct addrinfo hints, *ai = NULL;
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_family = AF_UNSPEC;
if (getaddrinfo(host, NULL, &hints, &ai)) {
av_log(s, AV_LOG_ERROR, "Unable to resolve %s\n", host);
ret = AVERROR(EIO);