comparison tcp.c @ 6182:4fc5e0e4e1cd libavformat

Make ff_url_split() public ff_url_split() is retained as an alias, as it was used by ffserver, to avoid breaking ABI compatibility with it.
author mru
date Sun, 27 Jun 2010 14:16:46 +0000
parents 7fdda2416684
children a5b3f5d68db6
comparison
equal deleted inserted replaced
6181:cb49c916b7f4 6182:4fc5e0e4e1cd
43 struct timeval tv; 43 struct timeval tv;
44 socklen_t optlen; 44 socklen_t optlen;
45 char hostname[1024],proto[1024],path[1024]; 45 char hostname[1024],proto[1024],path[1024];
46 char portstr[10]; 46 char portstr[10];
47 47
48 ff_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), 48 av_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
49 &port, path, sizeof(path), uri); 49 &port, path, sizeof(path), uri);
50 if (strcmp(proto,"tcp") || port <= 0 || port >= 65536) 50 if (strcmp(proto,"tcp") || port <= 0 || port >= 65536)
51 return AVERROR(EINVAL); 51 return AVERROR(EINVAL);
52 52
53 memset(&hints, 0, sizeof(hints)); 53 memset(&hints, 0, sizeof(hints));