static int activate(AVFilterContext *ctx)

{

    PreMultiplyContext *s = ctx->priv;



    if (s->inplace) {

        AVFrame *frame = NULL;

        AVFrame *out = NULL;

        int ret, status;

        int64_t pts;



        if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) {

            if ((ret = filter_frame(ctx, &out, frame, frame)) < 0)

                return ret;

            av_frame_free(&frame);

            ret = ff_filter_frame(ctx->outputs[0], out);

        }

        if (ret < 0) {

            return ret;

        } else if (ff_inlink_acknowledge_status(ctx->inputs[0], &status, &pts)) {

            ff_outlink_set_status(ctx->outputs[0], status, pts);

            return 0;

        } else {

            if (ff_outlink_frame_wanted(ctx->outputs[0]))

                ff_inlink_request_frame(ctx->inputs[0]);

            return 0;

        }

    } else {

        return ff_framesync_activate(&s->fs);

    }

}

static int activate(AVFilterContext *ctx)

{

    PreMultiplyContext *s = ctx->priv;



    if (s->inplace) {

        AVFrame *frame = NULL;

        AVFrame *out = NULL;

        int ret, status;

        int64_t pts;



        if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) {

            if ((ret = filter_frame(ctx, &out, frame, frame)) < 0)

                return ret;

            av_frame_free(&frame);

            ret = ff_filter_frame(ctx->outputs[0], out);

        }

        if (ret < 0) {

            return ret;

        } else if (ff_inlink_acknowledge_status(ctx->inputs[0], &status, &pts)) {

            ff_outlink_set_status(ctx->outputs[0], status, pts);

            return 0;

        } else {

            if (ff_outlink_frame_wanted(ctx->outputs[0]))

                ff_inlink_request_frame(ctx->inputs[0]);

            return 0;

        }

    } else {

        return ff_framesync_activate(&s->fs);

    }

}

            if ((ret = filter_frame(ctx, &out, frame, frame)) < 0)                 return ret;
static int FUNC_0(AVFilterContext *VAR_0)

{

    PreMultiplyContext *s = VAR_0->priv;



    if (s->inplace) {

        AVFrame *frame = NULL;

        AVFrame *out = NULL;

        int VAR_1, VAR_2;

        int64_t pts;



        if ((VAR_1 = ff_inlink_consume_frame(VAR_0->inputs[0], &frame)) > 0) {

            if ((VAR_1 = filter_frame(VAR_0, &out, frame, frame)) < 0)

                return VAR_1;

            av_frame_free(&frame);

            VAR_1 = ff_filter_frame(VAR_0->outputs[0], out);

        }

        if (VAR_1 < 0) {

            return VAR_1;

        } else if (ff_inlink_acknowledge_status(VAR_0->inputs[0], &VAR_2, &pts)) {

            ff_outlink_set_status(VAR_0->outputs[0], VAR_2, pts);

            return 0;

        } else {

            if (ff_outlink_frame_wanted(VAR_0->outputs[0]))

                ff_inlink_request_frame(VAR_0->inputs[0]);

            return 0;

        }

    } else {

        return ff_framesync_activate(&s->fs);

    }

}

static int FUNC_0(AVFilterContext *VAR_0)
{ PreMultiplyContext *s = VAR_0->priv; if (s->inplace) { AVFrame *frame = NULL; AVFrame *out = NULL; int VAR_1, VAR_2; int64_t pts; if ((VAR_1 = ff_inlink_consume_frame(VAR_0->inputs[0], &frame)) > 0) { if ((VAR_1 = filter_frame(VAR_0, &out, frame, frame)) < 0)
return VAR_1; av_frame_free(&frame); VAR_1 = ff_filter_frame(VAR_0->outputs[0], out); } if (VAR_1 < 0) { return VAR_1; } else if (ff_inlink_acknowledge_status(VAR_0->inputs[0], &VAR_2, &pts)) { ff_outlink_set_status(VAR_0->outputs[0], VAR_2, pts); return 0; } else { if (ff_outlink_frame_wanted(VAR_0->outputs[0]))
ff_inlink_request_frame(VAR_0->inputs[0]); return 0; } } else { return ff_framesync_activate(&s->fs); } }