[FFmpeg-cvslog] r14768 - trunk/libavformat/os_support.c

aurel subversion
Fri Aug 15 00:36:06 CEST 2008


Author: aurel
Date: Fri Aug 15 00:36:05 2008
New Revision: 14768

Log:
use h_addr_list[0] instead of h_addr as this is the posix hostent field name

Modified:
   trunk/libavformat/os_support.c

Modified: trunk/libavformat/os_support.c
==============================================================================
--- trunk/libavformat/os_support.c	(original)
+++ trunk/libavformat/os_support.c	Fri Aug 15 00:36:05 2008
@@ -68,7 +68,7 @@ int resolve_host(struct in_addr *sin_add
         hp = gethostbyname(hostname);
         if (!hp)
             return -1;
-        memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
+        memcpy(sin_addr, hp->h_addr_list[0], sizeof(struct in_addr));
     }
     return 0;
 }




More information about the ffmpeg-cvslog mailing list