aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-04-06 01:10:30 +0200
committerMarton Balint <cus@passwd.hu>2021-04-08 17:38:06 +0200
commit25e794a1ea13ad0ed9f5c4792ab3727fe7a3ace1 (patch)
tree6ae3db9de2d09ae2ace7b35798d6921e83d4ab19 /libavformat/url.h
parentd622923b36f6a31b043da73b05946bea5612bb72 (diff)
downloadffmpeg-25e794a1ea13ad0ed9f5c4792ab3727fe7a3ace1.tar.gz
avformat/url: add ff_make_absolulte_url2 to be able to test windows path cases
Signed-off-by: Marton Balint <cus@passwd.hu> (cherry picked from commit fb4da90fecdefa2508618ca835cd0250be940e04)
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h
index f13e851a14..3bb1cf89f7 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -308,6 +308,16 @@ int ff_url_join(char *str, int size, const char *proto,
* @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
+ * @param handle_dos_paths handle DOS paths for file or unspecified protocol
+ */
+int ff_make_absolute_url2(char *buf, int size, const char *base,
+ const char *rel, int handle_dos_paths);
+
+/**
+ * Convert a relative url into an absolute url, given a base url.
+ *
+ * Same as ff_make_absolute_url2 with handle_dos_paths being equal to
+ * HAVE_DOS_PATHS config variable.
*/
int ff_make_absolute_url(char *buf, int size, const char *base,
const char *rel);