summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-03-17 12:24:23 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-03-17 12:28:37 +0100
commitf1f60f5252b0b448adcce0c1c52f3161ee69b9bf (patch)
tree0a8803e4bd4073efeff698fec9161ab1f1762ee8 /libavformat/internal.h
parentdc6fdad5dcbf4e796543929ccbce0de1f8535efd (diff)
lavf: Make make_absolute_url a lavf internal function
This is shared by both applehttp demuxer and protocol. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 02a27e4724..d5bfc33187 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -239,4 +239,15 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base,
*/
void ff_reduce_index(AVFormatContext *s, int stream_index);
+/*
+ * Convert a relative url into an absolute url, given a base url.
+ *
+ * @param buf the buffer where output absolute url is written
+ * @param size the size of buf
+ * @param base the base url, may be equal to buf.
+ * @param rel the new url, which is interpreted relative to base
+ */
+void ff_make_absolute_url(char *buf, int size, const char *base,
+ const char *rel);
+
#endif /* AVFORMAT_INTERNAL_H */