Originally committed as revision 8838 to svn://svn.ffmpeg.org/ffmpeg/trunk
File ".\ffplay.exe"
File ".\COPYING"
File ".\CREDITS"
-
+
; documentation
SetOutPath $INSTDIR\doc
File ".\doc\faq.html"
Delete "$INSTDIR\ffplay.exe"
Delete "$INSTDIR\COPYING"
Delete "$INSTDIR\CREDITS"
-
+
; delete documentation
Delete "$INSTDIR\doc\faq.html"
Delete "$INSTDIR\ffmpeg-doc.html"
}
get_arg(arg, sizeof(arg), &p);
-
+
if (resolve_host(&acl.first, arg) != 0) {
fprintf(stderr, "%s:%d: ACL refers to invalid host or ip address '%s'\n",
filename, line_num, arg);
int resolve_host(struct in_addr *sin_addr, const char *hostname)
{
struct hostent *hp;
-
+
if (!inet_aton(hostname, sin_addr)) {
- hp = gethostbyname(hostname);
- if (!hp)
- return -1;
- memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
+ hp = gethostbyname(hostname);
+ if (!hp)
+ return -1;
+ memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
}
return 0;
}