提交 5cb4f1a1 编写于 作者: N Nicolas George 提交者: Anton Khirnov

vsrc_buffer: return EAGAIN if no frame is available.

This is not an erroneous condition, do not print a warning.
Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 ddffe3de
......@@ -175,9 +175,7 @@ static int request_frame(AVFilterLink *link)
if (!av_fifo_size(c->fifo)) {
if (c->eof)
return AVERROR_EOF;
av_log(link->src, AV_LOG_ERROR,
"request_frame() called with no available frame!\n");
return AVERROR(EINVAL);
return AVERROR(EAGAIN);
}
av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册