Commit a03f8ea0 authored by Anton Khirnov's avatar Anton Khirnov

vsrc_buffer: when no frame is available, return an error instead of segfaulting.

parent cfec77aa
......@@ -162,7 +162,7 @@ static int request_frame(AVFilterLink *link)
if (!av_fifo_size(c->fifo)) {
av_log(link->src, AV_LOG_ERROR,
"request_frame() called with no available frame!\n");
//return -1;
return AVERROR(EINVAL);
}
av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment