From 8224f1e0ba65c064cf0fa2e11e4c688501b6eddd Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Tue, 4 Feb 2020 23:44:28 +0100 Subject: avformat/urldecode: add the ability to not decode plus sign to space Signed-off-by: Marton Balint --- libavformat/urldecode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/urldecode.h') 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 */ -- cgit v1.2.3