summaryrefslogtreecommitdiff
path: root/libavformat/urldecode.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-02-04 23:44:28 +0100
committerMarton Balint <cus@passwd.hu>2020-02-15 18:41:36 +0100
commit8224f1e0ba65c064cf0fa2e11e4c688501b6eddd (patch)
treea32ddeb114d647b77c54090a33ef6ec849effa7e /libavformat/urldecode.h
parent6a7b5226e1c868fe6406b114e7303c70d886900b (diff)
avformat/urldecode: add the ability to not decode plus sign to space
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/urldecode.h')
-rw-r--r--libavformat/urldecode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/urldecode.h b/libavformat/urldecode.h
index cb81ebc6f7..80b11c3428 100644
--- a/libavformat/urldecode.h
+++ b/libavformat/urldecode.h
@@ -26,10 +26,11 @@
* in that case the original string is duplicated.
*
* @param url a string to be decoded.
+ * @param decode_plus_sign if nonzero plus sign is decoded to space
* @return new string with the URL decoded or NULL if decoding failed.
* Note that the returned string should be explicitly freed when not
* used anymore.
*/
-char *ff_urldecode(const char *url);
+char *ff_urldecode(const char *url, int decode_plus_sign);
#endif /* AVFORMAT_URLDECODE_H */