Go to the documentation of this file.
37 static size_t urldecode(
char *dest,
const char *url,
size_t url_len,
int decode_plus_sign)
45 if (
c ==
'%' &&
s + 1 < url_len) {
62 dest[d++] = 16 *
c2 + c3;
69 }
else if (
c ==
'+' && decode_plus_sign) {
88 url_len = strlen(url) + 1;
94 urldecode(dest, url, url_len, decode_plus_sign);
99 int ff_urldecode_len(
char *dest,
size_t dest_len,
const char *url,
size_t url_max_len,
int decode_plus_sign)
101 size_t written_bytes;
102 size_t url_len = strlen(url);
104 url_len =
FFMIN(url_len, url_max_len);
106 if (dest_len <= url_len)
109 written_bytes =
urldecode(dest, url, url_len, decode_plus_sign);
110 dest[written_bytes] =
'\0';
112 return written_bytes;
static av_const int av_isxdigit(int c)
Locale-independent conversion of ASCII isxdigit.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
char * ff_urldecode(const char *url, int decode_plus_sign)
Decodes an URL from its percent-encoded form back into normal representation.
static size_t urldecode(char *dest, const char *url, size_t url_len, int decode_plus_sign)
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
int ff_urldecode_len(char *dest, size_t dest_len, const char *url, size_t url_max_len, 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.