int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src, const AVFrame *frame)

{

    int ret;

    AVFilterBufferRef *picref =

        avfilter_get_video_buffer_ref_from_frame(frame, AV_PERM_WRITE);

    if (!picref)

        return AVERROR(ENOMEM);

    ret = av_vsrc_buffer_add_video_buffer_ref(buffer_src, picref);

    picref->buf->data[0] = NULL;

    avfilter_unref_buffer(picref);



    return ret;

}

int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src, const AVFrame *frame)

{

    int ret;

    AVFilterBufferRef *picref =

        avfilter_get_video_buffer_ref_from_frame(frame, AV_PERM_WRITE);

    if (!picref)

        return AVERROR(ENOMEM);

    ret = av_vsrc_buffer_add_video_buffer_ref(buffer_src, picref);

    picref->buf->data[0] = NULL;

    avfilter_unref_buffer(picref);



    return ret;

}

int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src, const AVFrame *frame)     ret = av_vsrc_buffer_add_video_buffer_ref(buffer_src, picref);
int FUNC_0(AVFilterContext *VAR_0, const AVFrame *VAR_1)

{

    int VAR_2;

    AVFilterBufferRef *picref =

        avfilter_get_video_buffer_ref_from_frame(VAR_1, AV_PERM_WRITE);

    if (!picref)

        return AVERROR(ENOMEM);

    VAR_2 = av_vsrc_buffer_add_video_buffer_ref(VAR_0, picref);

    picref->buf->data[0] = NULL;

    avfilter_unref_buffer(picref);



    return VAR_2;

}

int FUNC_0(AVFilterContext *VAR_0, const AVFrame *VAR_1)
{ int VAR_2; AVFilterBufferRef *picref =
avfilter_get_video_buffer_ref_from_frame(VAR_1, AV_PERM_WRITE); if (!picref)
return AVERROR(ENOMEM); VAR_2 = av_vsrc_buffer_add_video_buffer_ref(VAR_0, picref); picref->buf->data[0] = NULL; avfilter_unref_buffer(picref); return VAR_2; }