comparison rtpproto.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 ccb05424c391
comparison
equal deleted inserted replaced
6181:cb49c916b7f4 6182:4fc5e0e4e1cd
64 int port; 64 int port;
65 65
66 char buf[1024]; 66 char buf[1024];
67 char path[1024]; 67 char path[1024];
68 68
69 ff_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, 69 av_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
70 path, sizeof(path), uri); 70 path, sizeof(path), uri);
71 71
72 ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port, "%s", path); 72 ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port, "%s", path);
73 udp_set_remote_url(s->rtp_hd, buf); 73 udp_set_remote_url(s->rtp_hd, buf);
74 74
144 s = av_mallocz(sizeof(RTPContext)); 144 s = av_mallocz(sizeof(RTPContext));
145 if (!s) 145 if (!s)
146 return AVERROR(ENOMEM); 146 return AVERROR(ENOMEM);
147 h->priv_data = s; 147 h->priv_data = s;
148 148
149 ff_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &rtp_port, 149 av_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &rtp_port,
150 path, sizeof(path), uri); 150 path, sizeof(path), uri);
151 /* extract parameters */ 151 /* extract parameters */
152 ttl = -1; 152 ttl = -1;
153 rtcp_port = rtp_port+1; 153 rtcp_port = rtp_port+1;
154 local_rtp_port = -1; 154 local_rtp_port = -1;