int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)

{

    BufferSinkContext *s    = ctx->priv;

    AVFilterLink      *link = ctx->inputs[0];

    int ret;



    if ((ret = ff_request_frame(link)) < 0)

        return ret;



    if (!s->cur_frame)

        return AVERROR(EINVAL);



    av_frame_move_ref(frame, s->cur_frame);

    av_frame_free(&s->cur_frame);



    return 0;

}

int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)

{

    BufferSinkContext *s    = ctx->priv;

    AVFilterLink      *link = ctx->inputs[0];

    int ret;



    if ((ret = ff_request_frame(link)) < 0)

        return ret;



    if (!s->cur_frame)

        return AVERROR(EINVAL);



    av_frame_move_ref(frame, s->cur_frame);

    av_frame_free(&s->cur_frame);



    return 0;

}

int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame)
int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)

{

    BufferSinkContext *s    = VAR_0->priv;

    AVFilterLink      *link = VAR_0->inputs[0];

    int VAR_2;



    if ((VAR_2 = ff_request_frame(link)) < 0)

        return VAR_2;



    if (!s->cur_frame)

        return AVERROR(EINVAL);



    av_frame_move_ref(VAR_1, s->cur_frame);

    av_frame_free(&s->cur_frame);



    return 0;

}

int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)
{ BufferSinkContext *s    = VAR_0->priv; AVFilterLink      *link = VAR_0->inputs[0]; int VAR_2; if ((VAR_2 = ff_request_frame(link)) < 0)
return VAR_2; if (!s->cur_frame)
return AVERROR(EINVAL); av_frame_move_ref(VAR_1, s->cur_frame); av_frame_free(&s->cur_frame); return 0; }