static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)

{

    AVFilterContext *ctx = inlink->dst;

    int i, ret = 0;



    for (i = 0; i < ctx->nb_outputs; i++) {

        ret = ff_filter_samples(inlink->dst->outputs[i],

                                avfilter_ref_buffer(samplesref, ~AV_PERM_WRITE));

        if (ret < 0)

            break;

    }

    avfilter_unref_buffer(samplesref);

    return ret;

}

static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)

{

    AVFilterContext *ctx = inlink->dst;

    int i, ret = 0;



    for (i = 0; i < ctx->nb_outputs; i++) {

        ret = ff_filter_samples(inlink->dst->outputs[i],

                                avfilter_ref_buffer(samplesref, ~AV_PERM_WRITE));

        if (ret < 0)

            break;

    }

    avfilter_unref_buffer(samplesref);

    return ret;

}

static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)

{

    AVFilterContext *ctx = VAR_0->dst;

    int VAR_2, VAR_3 = 0;



    for (VAR_2 = 0; VAR_2 < ctx->nb_outputs; VAR_2++) {

        VAR_3 = ff_filter_samples(VAR_0->dst->outputs[VAR_2],

                                avfilter_ref_buffer(VAR_1, ~AV_PERM_WRITE));

        if (VAR_3 < 0)

            break;

    }

    avfilter_unref_buffer(VAR_1);

    return VAR_3;

}

static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)
{ AVFilterContext *ctx = VAR_0->dst; int VAR_2, VAR_3 = 0; for (VAR_2 = 0; VAR_2 < ctx->nb_outputs; VAR_2++) { VAR_3 = ff_filter_samples(VAR_0->dst->outputs[VAR_2],
avfilter_ref_buffer(VAR_1, ~AV_PERM_WRITE)); if (VAR_3 < 0)
break; } avfilter_unref_buffer(VAR_1); return VAR_3; }