static void end_frame_over(AVFilterLink *inlink)
{
    AVFilterContext *ctx = inlink->dst;
    OverlayContext *over = ctx->priv;
    AVFilterBufferRef *inpicref = inlink->cur_buf;

    flush_frames(ctx);
    inpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,
                                 ctx->outputs[0]->time_base);
    ff_bufqueue_add(ctx, &over->queue_over, inpicref);
    try_push_frame(ctx);
}