int ret;
*bufref = NULL;
+ av_assert0(!strcmp(ctx->filter->name, "buffersink") || !strcmp(ctx->filter->name, "abuffersink"));
+
/* no picref available, fetch it from the filterchain */
if (!av_fifo_size(buf->fifo)) {
if (flags & AV_BUFFERSINK_FLAG_NO_REQUEST)
AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx)
{
+ av_assert0(!strcmp(ctx->filter->name, "buffersink"));
+
return ctx->inputs[0]->frame_rate;
}
BufferSinkContext *buf = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
+ av_assert0(!strcmp(ctx->filter->name, "buffersink") || !strcmp(ctx->filter->name, "abuffersink"));
+
return av_fifo_size(buf->fifo)/sizeof(AVFilterBufferRef *) + ff_poll_frame(inlink);
}