37 int s = 0, d = 0, url_len = 0;
44 url_len = strlen(url) + 1;
53 if (c ==
'%' && s + 2 < url_len) {
70 dest[d++] = 16 * c2 + c3;
77 }
else if (c ==
'+' && decode_plus_sign) {
Memory handling functions.
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
char * ff_urldecode(const char *url, int decode_plus_sign)
Decodes an URL from its percent-encoded form back into normal representation.
static av_const int av_tolower(int c)
Locale-independent conversion of ASCII characters to lowercase.
static av_const int av_isxdigit(int c)
Locale-independent conversion of ASCII isxdigit.