+int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf)
+{
+ BufferSourceContext *c = s->priv;
+
+ if (c->picref) {
+ av_log(s, AV_LOG_ERROR,
+ "Buffering several frames is not supported. "
+ "Please consume all available frames before adding a new one.\n"
+ );
+ return AVERROR(EINVAL);
+ }
+
+// CHECK_PARAM_CHANGE(s, c, buf->video->w, buf->video->h, buf->format);
+
+ c->picref = buf;
+
+ return 0;
+}
+