summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-03-08 09:03:25 +0000
committerMartin Storsjö <martin@martin.st>2010-03-08 09:03:25 +0000
commitc5c6e67c28e0e30b681cff55e8d85bb963d8640e (patch)
treed76a2596d799248e9e6cc7f3157b2f662424724b /libavformat
parentda5bcafe3b728f255ad068fc406622515b435082 (diff)
Rename url_split to ff_url_split
Since this function isn't in the public API, it should have an ff_ prefix. Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avformat.h6
-rw-r--r--libavformat/gopher.c2
-rw-r--r--libavformat/http.c4
-rw-r--r--libavformat/rtmpproto.c2
-rw-r--r--libavformat/rtpproto.c4
-rw-r--r--libavformat/rtsp.c4
-rw-r--r--libavformat/sdp.c2
-rw-r--r--libavformat/tcp.c2
-rw-r--r--libavformat/udp.c6
-rw-r--r--libavformat/utils.c2
10 files changed, 17 insertions, 17 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 4d684dad50..0b7936af07 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1343,7 +1343,7 @@ struct in_addr;
/* Deprecated, use getaddrinfo instead. */
attribute_deprecated int resolve_host(struct in_addr *sin_addr, const char *hostname);
-void url_split(char *proto, int proto_size,
+void ff_url_split(char *proto, int proto_size,
char *authorization, int authorization_size,
char *hostname, int hostname_size,
int *port_ptr,
@@ -1352,12 +1352,12 @@ void url_split(char *proto, int proto_size,
/**
* Assembles a URL string from components. This is the reverse operation
- * of url_split.
+ * of ff_url_split.
*
* Note, this requires networking to be initialized, so the caller must
* ensure ff_network_init has been called.
*
- * @see url_split
+ * @see ff_url_split
*
* @param str the buffer to fill with the url
* @param size the size of the str buffer
diff --git a/libavformat/gopher.c b/libavformat/gopher.c
index 396b358cb1..abb1748bad 100644
--- a/libavformat/gopher.c
+++ b/libavformat/gopher.c
@@ -89,7 +89,7 @@ static int gopher_open(URLContext *h, const char *uri, int flags)
h->priv_data = s;
/* needed in any case to build the host string */
- url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
+ ff_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
path, sizeof(path), uri);
if (port < 0)
diff --git a/libavformat/http.c b/libavformat/http.c
index da200213ce..5861794092 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -69,12 +69,12 @@ static int http_open_cnx(URLContext *h)
/* fill the dest addr */
redo:
/* needed in any case to build the host string */
- url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
+ ff_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
path1, sizeof(path1), s->location);
ff_url_join(hoststr, sizeof(hoststr), NULL, NULL, hostname, port, NULL);
if (use_proxy) {
- url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
+ ff_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
NULL, 0, proxy_path);
path = s->location;
} else {
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 7fd0da8144..9d3a193ce3 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -812,7 +812,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
s->priv_data = rt;
rt->is_input = !(flags & URL_WRONLY);
- url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), &port,
+ ff_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), &port,
path, sizeof(path), s->filename);
if (port < 0)
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 4de905e0b3..02f050f131 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -64,7 +64,7 @@ int rtp_set_remote_url(URLContext *h, const char *uri)
char buf[1024];
char path[1024];
- url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
+ ff_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
path, sizeof(path), uri);
ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port, "%s", path);
@@ -134,7 +134,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
return AVERROR(ENOMEM);
h->priv_data = s;
- url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
+ ff_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
path, sizeof(path), uri);
/* extract parameters */
ttl = -1;
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 60f13275e5..f8387f1ee9 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -446,7 +446,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
rtsp_st = st->priv_data;
/* XXX: may need to add full url resolution */
- url_split(proto, sizeof(proto), NULL, 0, NULL, 0,
+ ff_url_split(proto, sizeof(proto), NULL, 0, NULL, 0,
NULL, NULL, 0, p);
if (proto[0] == '\0') {
/* relative control URL */
@@ -1390,7 +1390,7 @@ int ff_rtsp_connect(AVFormatContext *s)
return AVERROR(EIO);
redirect:
/* extract hostname and port */
- url_split(NULL, 0, auth, sizeof(auth),
+ ff_url_split(NULL, 0, auth, sizeof(auth),
host, sizeof(host), &port, path, sizeof(path), s->filename);
if (*auth) {
int auth_len = strlen(auth), b64_len = ((auth_len + 2) / 3) * 4 + 1;
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 6a550fa9a7..37f92ff316 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -109,7 +109,7 @@ static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url)
const char *p;
char proto[32];
- url_split(proto, sizeof(proto), NULL, 0, dest_addr, size, &port, NULL, 0, url);
+ ff_url_split(proto, sizeof(proto), NULL, 0, dest_addr, size, &port, NULL, 0, url);
*ttl = 0;
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index 0f097d0dd2..3a39a9977f 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -44,7 +44,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
char hostname[1024],proto[1024],path[1024];
char portstr[10];
- url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
+ ff_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
&port, path, sizeof(path), uri);
if (strcmp(proto,"tcp") || port <= 0 || port >= 65536)
return AVERROR(EINVAL);
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 1b09457a46..3037a04fa0 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -265,7 +265,7 @@ int udp_set_remote_url(URLContext *h, const char *uri)
char hostname[256];
int port;
- url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);
+ ff_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);
/* set the destination address */
s->dest_addr_len = udp_set_url(&s->dest_addr, hostname, port);
@@ -346,9 +346,9 @@ static int udp_open(URLContext *h, const char *uri, int flags)
}
/* fill the dest addr */
- url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);
+ ff_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);
- /* XXX: fix url_split */
+ /* XXX: fix ff_url_split */
if (hostname[0] == '\0' || hostname[0] == '?') {
/* only accepts null hostname if input */
if (flags & URL_WRONLY)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index caed353a7c..49b7225f52 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3365,7 +3365,7 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload)
pkt_dump_internal(avcl, NULL, level, pkt, dump_payload);
}
-void url_split(char *proto, int proto_size,
+void ff_url_split(char *proto, int proto_size,
char *authorization, int authorization_size,
char *hostname, int hostname_size,
int *port_ptr,