static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref)

{

    AVFilterContext *ctx = inlink->dst;

    OverlayContext *over = ctx->priv;



    inlink->cur_buf  = NULL;


    over->overpicref = inpicref;

    over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,

                                         ctx->outputs[0]->time_base);

    return 0;

}
static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref)

{

    AVFilterContext *ctx = inlink->dst;

    OverlayContext *over = ctx->priv;



    inlink->cur_buf  = NULL;


    over->overpicref = inpicref;

    over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,

                                         ctx->outputs[0]->time_base);

    return 0;

}
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)

{

    AVFilterContext *ctx = VAR_0->dst;

    OverlayContext *over = ctx->priv;



    VAR_0->cur_buf  = NULL;


    over->overpicref = VAR_1;

    over->overpicref->pts = av_rescale_q(VAR_1->pts, ctx->inputs[OVERLAY]->time_base,

                                         ctx->outputs[0]->time_base);

    return 0;

}
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)
{ AVFilterContext *ctx = VAR_0->dst; OverlayContext *over = ctx->priv; VAR_0->cur_buf  = NULL; over->overpicref = VAR_1; over->overpicref->pts = av_rescale_q(VAR_1->pts, ctx->inputs[OVERLAY]->time_base,
ctx->outputs[0]->time_base); return 0; }