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

{

    AudioPhaserContext *s = inlink->dst->priv;

    AVFilterLink *outlink = inlink->dst->outputs[0];

    AVFrame *outbuf;



    if (av_frame_is_writable(inbuf)) {

        outbuf = inbuf;

    } else {

        outbuf = ff_get_audio_buffer(inlink, inbuf->nb_samples);

        if (!outbuf)

            return AVERROR(ENOMEM);

        av_frame_copy_props(outbuf, inbuf);

    }



    s->phaser(s, inbuf->extended_data, outbuf->extended_data,

              outbuf->nb_samples, outbuf->channels);



    if (inbuf != outbuf)

        av_frame_free(&inbuf);



    return ff_filter_frame(outlink, outbuf);

}

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

{

    AudioPhaserContext *s = inlink->dst->priv;

    AVFilterLink *outlink = inlink->dst->outputs[0];

    AVFrame *outbuf;



    if (av_frame_is_writable(inbuf)) {

        outbuf = inbuf;

    } else {

        outbuf = ff_get_audio_buffer(inlink, inbuf->nb_samples);

        if (!outbuf)

            return AVERROR(ENOMEM);

        av_frame_copy_props(outbuf, inbuf);

    }



    s->phaser(s, inbuf->extended_data, outbuf->extended_data,

              outbuf->nb_samples, outbuf->channels);



    if (inbuf != outbuf)

        av_frame_free(&inbuf);



    return ff_filter_frame(outlink, outbuf);

}

        if (!outbuf)
static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)

{

    AudioPhaserContext *s = VAR_0->dst->priv;

    AVFilterLink *outlink = VAR_0->dst->outputs[0];

    AVFrame *outbuf;



    if (av_frame_is_writable(VAR_1)) {

        outbuf = VAR_1;

    } else {

        outbuf = ff_get_audio_buffer(VAR_0, VAR_1->nb_samples);

        if (!outbuf)

            return AVERROR(ENOMEM);

        av_frame_copy_props(outbuf, VAR_1);

    }



    s->phaser(s, VAR_1->extended_data, outbuf->extended_data,

              outbuf->nb_samples, outbuf->channels);



    if (VAR_1 != outbuf)

        av_frame_free(&VAR_1);



    return ff_filter_frame(outlink, outbuf);

}

static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)
{ AudioPhaserContext *s = VAR_0->dst->priv; AVFilterLink *outlink = VAR_0->dst->outputs[0]; AVFrame *outbuf; if (av_frame_is_writable(VAR_1)) { outbuf = VAR_1; } else { outbuf = ff_get_audio_buffer(VAR_0, VAR_1->nb_samples); if (!outbuf)
return AVERROR(ENOMEM); av_frame_copy_props(outbuf, VAR_1); } s->phaser(s, VAR_1->extended_data, outbuf->extended_data,
outbuf->nb_samples, outbuf->channels); if (VAR_1 != outbuf)
av_frame_free(&VAR_1); return ff_filter_frame(outlink, outbuf); }