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

                        AVFilterInOut **openLinks, 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 openLinks list */

        match = extract_inout(name, openLinks);



        if(match) {

            /* A label of a open link. Make it one of the inputs of the next

               filter */

            if(match->type != LinkTypeOut) {

                av_log(log_ctx, AV_LOG_ERROR,

                       "Label \"%s\" appears twice as input!\n", match->name);

                return -1;

            }


        } else {

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

            match = av_mallocz(sizeof(AVFilterInOut));

            match->name    = name;

            match->type    = LinkTypeIn;

            match->pad_idx = pad;

        }



        insert_inout(currInputs, match);



        *buf += consume_whitespace(*buf);

        pad++;

    }



    return pad;

}
static int parse_inputs(const char **buf, AVFilterInOut **currInputs,

                        AVFilterInOut **openLinks, 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, openLinks);



        if(match) {

            



            if(match->type != LinkTypeOut) {

                av_log(log_ctx, AV_LOG_ERROR,

                       "Label \"%s\" appears twice as input!\n", match->name);

                return -1;

            }


        } else {

            

            match = av_mallocz(sizeof(AVFilterInOut));

            match->name    = name;

            match->type    = LinkTypeIn;

            match->pad_idx = pad;

        }



        insert_inout(currInputs, match);



        *buf += consume_whitespace(*buf);

        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) {

            



            if(match->type != LinkTypeOut) {

                av_log(VAR_3, AV_LOG_ERROR,

                       "Label \"%s\" appears twice as input!\n", match->VAR_5);

                return -1;

            }


        } else {

            

            match = av_mallocz(sizeof(AVFilterInOut));

            match->VAR_5    = VAR_5;

            match->type    = LinkTypeIn;

            match->pad_idx = VAR_4;

        }



        insert_inout(VAR_1, match);



        *VAR_0 += consume_whitespace(*VAR_0);

        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) { if(match->type != LinkTypeOut) { av_log(VAR_3, AV_LOG_ERROR,
"Label \"%s\" appears twice as input!\n", match->VAR_5); return -1; } } else { match = av_mallocz(sizeof(AVFilterInOut)); match->VAR_5    = VAR_5; match->type    = LinkTypeIn; match->pad_idx = VAR_4; } insert_inout(VAR_1, match); *VAR_0 += consume_whitespace(*VAR_0); VAR_4++; } return VAR_4; }