static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs,

                        AVFilterInOut **open_outputs, AVClass *log_ctx)

{

    int pad = 0;



    while (**buf == '[') {

        char *name = parse_link_name(buf, log_ctx);

        AVFilterInOut *match;



        if (!name)

            return -1;



        /* First check if the label is not in the open_outputs list */

        match = extract_inout(name, open_outputs);



        if (match) {

            av_free(name);

        } else {

            /* Not in the list, so add it as an input */

            match = av_mallocz(sizeof(AVFilterInOut));

            match->name    = name;

            match->pad_idx = pad;

        }



        insert_inout(curr_inputs, match);



        *buf += strspn(*buf, WHITESPACES);

        pad++;

    }



    return pad;

}

static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs,

                        AVFilterInOut **open_outputs, AVClass *log_ctx)

{

    int pad = 0;



    while (**buf == '[') {

        char *name = parse_link_name(buf, log_ctx);

        AVFilterInOut *match;



        if (!name)

            return -1;



        

        match = extract_inout(name, open_outputs);



        if (match) {

            av_free(name);

        } else {

            

            match = av_mallocz(sizeof(AVFilterInOut));

            match->name    = name;

            match->pad_idx = pad;

        }



        insert_inout(curr_inputs, match);



        *buf += strspn(*buf, WHITESPACES);

        pad++;

    }



    return pad;

}

static int FUNC_0(const char **VAR_0, AVFilterInOut **VAR_1,

                        AVFilterInOut **VAR_2, AVClass *VAR_3)

{

    int VAR_4 = 0;



    while (**VAR_0 == '[') {

        char *VAR_5 = parse_link_name(VAR_0, VAR_3);

        AVFilterInOut *match;



        if (!VAR_5)

            return -1;



        

        match = extract_inout(VAR_5, VAR_2);



        if (match) {

            av_free(VAR_5);

        } else {

            

            match = av_mallocz(sizeof(AVFilterInOut));

            match->VAR_5    = VAR_5;

            match->pad_idx = VAR_4;

        }



        insert_inout(VAR_1, match);



        *VAR_0 += strspn(*VAR_0, WHITESPACES);

        VAR_4++;

    }



    return VAR_4;

}

static int FUNC_0(const char **VAR_0, AVFilterInOut **VAR_1,
AVFilterInOut **VAR_2, AVClass *VAR_3)
{ int VAR_4 = 0; while (**VAR_0 == '[') { char *VAR_5 = parse_link_name(VAR_0, VAR_3); AVFilterInOut *match; if (!VAR_5)
return -1; match = extract_inout(VAR_5, VAR_2); if (match) { av_free(VAR_5); } else { match = av_mallocz(sizeof(AVFilterInOut)); match->VAR_5    = VAR_5; match->pad_idx = VAR_4; } insert_inout(VAR_1, match); *VAR_0 += strspn(*VAR_0, WHITESPACES); VAR_4++; } return VAR_4; }