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

                         AVFilterInOut **open_inputs,

                         AVFilterInOut **open_outputs, AVClass *log_ctx)

{

    int ret, pad = 0;



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

        char *name = parse_link_name(buf, log_ctx);

        AVFilterInOut *match;



        AVFilterInOut *input = *curr_inputs;







        *curr_inputs = (*curr_inputs)->next;



        if (!name)




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

        match = extract_inout(name, open_inputs);



        if (match) {

            if ((ret = link_filter(input->filter_ctx, input->pad_idx,

                                   match->filter_ctx, match->pad_idx, log_ctx)) < 0)

                return ret;

            av_free(match->name);

            av_free(name);

            av_free(match);

            av_free(input);

        } else {

            /* Not in the list, so add the first input as a open_output */

            input->name = name;

            insert_inout(open_outputs, input);


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

        pad++;




    return pad;

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

                         AVFilterInOut **open_inputs,

                         AVFilterInOut **open_outputs, AVClass *log_ctx)

{

    int ret, pad = 0;



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

        char *name = parse_link_name(buf, log_ctx);

        AVFilterInOut *match;



        AVFilterInOut *input = *curr_inputs;







        *curr_inputs = (*curr_inputs)->next;



        if (!name)




        

        match = extract_inout(name, open_inputs);



        if (match) {

            if ((ret = link_filter(input->filter_ctx, input->pad_idx,

                                   match->filter_ctx, match->pad_idx, log_ctx)) < 0)

                return ret;

            av_free(match->name);

            av_free(name);

            av_free(match);

            av_free(input);

        } else {

            

            input->name = name;

            insert_inout(open_outputs, input);


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

        pad++;




    return pad;

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

                         AVFilterInOut **VAR_2,

                         AVFilterInOut **VAR_3, AVClass *VAR_4)

{

    int VAR_5, VAR_6 = 0;



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

        char *VAR_7 = parse_link_name(VAR_0, VAR_4);

        AVFilterInOut *match;



        AVFilterInOut *input = *VAR_1;







        *VAR_1 = (*VAR_1)->next;



        if (!VAR_7)




        

        match = extract_inout(VAR_7, VAR_2);



        if (match) {

            if ((VAR_5 = link_filter(input->filter_ctx, input->pad_idx,

                                   match->filter_ctx, match->pad_idx, VAR_4)) < 0)

                return VAR_5;

            av_free(match->VAR_7);

            av_free(VAR_7);

            av_free(match);

            av_free(input);

        } else {

            

            input->VAR_7 = VAR_7;

            insert_inout(VAR_3, input);


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

        VAR_6++;




    return VAR_6;

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