-static int try_push_frame(AVFilterContext *ctx)
-{
- OverlayContext *over = ctx->priv;
- AVFilterLink *outlink = ctx->outputs[0];
- AVFilterBufferRef *outpicref;
- int ret;
-
- if ((ret = try_start_next_frame(ctx)) < 0)
- return ret;
- outpicref = outlink->out_buf;
- if (over->overpicref)
- blend_slice(ctx, outpicref, over->overpicref, over->x, over->y,
- over->overpicref->video->w, over->overpicref->video->h,
- 0, outpicref->video->w, outpicref->video->h);
- if ((ret = ff_draw_slice(outlink, 0, outpicref->video->h, +1)) < 0 ||
- (ret = ff_end_frame(outlink)) < 0)
- return ret;
- return 0;
-}
-