static int process_frame(FFFrameSync *fs)

{

    AVFilterContext *ctx = fs->parent;

    LUT2Context *s = fs->opaque;

    AVFilterLink *outlink = ctx->outputs[0];

    AVFrame *out, *srcx, *srcy;

    int ret;



    if ((ret = ff_framesync2_get_frame(&s->fs, 0, &srcx, 0)) < 0 ||

        (ret = ff_framesync2_get_frame(&s->fs, 1, &srcy, 0)) < 0)

        return ret;



    if (ctx->is_disabled) {

        out = av_frame_clone(srcx);

        if (!out)

            return AVERROR(ENOMEM);

    } else {

        out = ff_get_video_buffer(outlink, outlink->w, outlink->h);

        if (!out)

            return AVERROR(ENOMEM);

        av_frame_copy_props(out, srcx);



        s->lut2(s, out, srcx, srcy);

    }



    out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);



    return ff_filter_frame(outlink, out);

}

static int process_frame(FFFrameSync *fs)

{

    AVFilterContext *ctx = fs->parent;

    LUT2Context *s = fs->opaque;

    AVFilterLink *outlink = ctx->outputs[0];

    AVFrame *out, *srcx, *srcy;

    int ret;



    if ((ret = ff_framesync2_get_frame(&s->fs, 0, &srcx, 0)) < 0 ||

        (ret = ff_framesync2_get_frame(&s->fs, 1, &srcy, 0)) < 0)

        return ret;



    if (ctx->is_disabled) {

        out = av_frame_clone(srcx);

        if (!out)

            return AVERROR(ENOMEM);

    } else {

        out = ff_get_video_buffer(outlink, outlink->w, outlink->h);

        if (!out)

            return AVERROR(ENOMEM);

        av_frame_copy_props(out, srcx);



        s->lut2(s, out, srcx, srcy);

    }



    out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);



    return ff_filter_frame(outlink, out);

}

    AVFrame *out, *srcx, *srcy;     if (ctx->is_disabled) {
static int FUNC_0(FFFrameSync *VAR_0)

{

    AVFilterContext *ctx = VAR_0->parent;

    LUT2Context *s = VAR_0->opaque;

    AVFilterLink *outlink = ctx->outputs[0];

    AVFrame *out, *srcx, *srcy;

    int VAR_1;



    if ((VAR_1 = ff_framesync2_get_frame(&s->VAR_0, 0, &srcx, 0)) < 0 ||

        (VAR_1 = ff_framesync2_get_frame(&s->VAR_0, 1, &srcy, 0)) < 0)

        return VAR_1;



    if (ctx->is_disabled) {

        out = av_frame_clone(srcx);

        if (!out)

            return AVERROR(ENOMEM);

    } else {

        out = ff_get_video_buffer(outlink, outlink->w, outlink->h);

        if (!out)

            return AVERROR(ENOMEM);

        av_frame_copy_props(out, srcx);



        s->lut2(s, out, srcx, srcy);

    }



    out->pts = av_rescale_q(s->VAR_0.pts, s->VAR_0.time_base, outlink->time_base);



    return ff_filter_frame(outlink, out);

}

static int FUNC_0(FFFrameSync *VAR_0)
{ AVFilterContext *ctx = VAR_0->parent; LUT2Context *s = VAR_0->opaque; AVFilterLink *outlink = ctx->outputs[0]; AVFrame *out, *srcx, *srcy; int VAR_1; if ((VAR_1 = ff_framesync2_get_frame(&s->VAR_0, 0, &srcx, 0)) < 0 ||
(VAR_1 = ff_framesync2_get_frame(&s->VAR_0, 1, &srcy, 0)) < 0)
return VAR_1; if (ctx->is_disabled) { out = av_frame_clone(srcx); if (!out)
return AVERROR(ENOMEM); } else { out = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out)
return AVERROR(ENOMEM); av_frame_copy_props(out, srcx); s->lut2(s, out, srcx, srcy); } out->pts = av_rescale_q(s->VAR_0.pts, s->VAR_0.time_base, outlink->time_base); return ff_filter_frame(outlink, out); }