diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-27 14:16:46 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-27 14:16:46 +0000 |
commit | f3bfe388b5ba1767ce982c8304dfe9ef0f38a454 (patch) | |
tree | 8cef06f9ff5ba5e6cd681ea5b3e6b3922a0858e2 /libavformat/utils.c | |
parent | 350120d269033f4cc206850b3c81f797ed2cb9c6 (diff) | |
download | ffmpeg-f3bfe388b5ba1767ce982c8304dfe9ef0f38a454.tar.gz |
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.
Originally committed as revision 23822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index e33cb50661..efbf4e4a0e 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3493,6 +3493,8 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload) pkt_dump_internal(avcl, NULL, level, pkt, dump_payload); } +#if LIBAVFORMAT_VERSION_MAJOR < 53 +attribute_deprecated void ff_url_split(char *proto, int proto_size, char *authorization, int authorization_size, char *hostname, int hostname_size, @@ -3500,6 +3502,22 @@ void ff_url_split(char *proto, int proto_size, char *path, int path_size, const char *url) { + av_url_split(proto, proto_size, + authorization, authorization_size, + hostname, hostname_size, + port_ptr, + path, path_size, + url); +} +#endif + +void av_url_split(char *proto, int proto_size, + char *authorization, int authorization_size, + char *hostname, int hostname_size, + int *port_ptr, + char *path, int path_size, + const char *url) +{ const char *p, *ls, *at, *col, *brk; if (port_ptr) *port_ptr = -1; |