}
/**
- * get the next non-whitespace char
- */
-static char consume_char(const char **buf)
-{
- char out;
- consume_whitespace(buf);
-
- out = **buf;
-
- if (out)
- (*buf)++;
-
- return out;
-}
-
-/**
* Copy the first size bytes of input string to a null-terminated string,
* removing any control character. Ex: "aaa'bb'c\'c\\" -> "aaabbc'c\"
*/
*/
static void parse_link_name(const char **buf, char **name)
{
- consume_char(buf);
+ (*buf)++;
*name = consume_string(buf);
if (!*name[0])
goto fail;
- if (consume_char(buf) != ')')
+ if (*(*buf)++ != ')')
goto fail;
return;
name = consume_string(buf);
if (**buf == '=') {
- consume_char(buf);
+ (*buf)++;
opts = consume_string(buf);
} else {
opts = NULL;
*/
int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad)
{
- AVFilterInOut *inout=NULL;
- AVFilterInOut *head=NULL;
+ AVFilterInOut *inout=NULL;
+ AVFilterInOut *head=NULL;
int index = 0;
char chr = 0;
}
pad = parse_inouts(&filters, &inout, 0, LinkTypeOut, index);
- chr = consume_char(&filters);
+ chr = *filters++;
index++;
} while (chr == ',' || chr == ';');