static int filter_frame(AVFilterLink *inlink, AVFrame *frame)

{

    AVFilterContext *ctx = inlink->dst;

    APadContext *apad = ctx->priv;



    if (apad->whole_len)

        apad->whole_len -= frame->nb_samples;



    apad->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base);

    return ff_filter_frame(ctx->outputs[0], frame);

}

static int filter_frame(AVFilterLink *inlink, AVFrame *frame)

{

    AVFilterContext *ctx = inlink->dst;

    APadContext *apad = ctx->priv;



    if (apad->whole_len)

        apad->whole_len -= frame->nb_samples;



    apad->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base);

    return ff_filter_frame(ctx->outputs[0], frame);

}

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

{

    AVFilterContext *ctx = VAR_0->dst;

    APadContext *apad = ctx->priv;



    if (apad->whole_len)

        apad->whole_len -= VAR_1->nb_samples;



    apad->next_pts = VAR_1->pts + av_rescale_q(VAR_1->nb_samples, (AVRational){1, VAR_0->sample_rate}, VAR_0->time_base);

    return ff_filter_frame(ctx->outputs[0], VAR_1);

}

static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)
{ AVFilterContext *ctx = VAR_0->dst; APadContext *apad = ctx->priv; if (apad->whole_len)
apad->whole_len -= VAR_1->nb_samples; apad->next_pts = VAR_1->pts + av_rescale_q(VAR_1->nb_samples, (AVRational){1, VAR_0->sample_rate}, VAR_0->time_base); return ff_filter_frame(ctx->outputs[0], VAR_1); }