aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-04-01 15:18:00 +0200
committerAnton Khirnov <anton@khirnov.net>2012-04-05 09:30:09 +0200
commita03f8ea0a8c70b72acc9d8307f1bba0f35c1d36e (patch)
tree3b6eb316a2e7e09d4a1e4d08ce7f369a9bd10b3a
parentcfec77aaf8186f556e1201be13ce487b99b3b831 (diff)
downloadffmpeg-a03f8ea0a8c70b72acc9d8307f1bba0f35c1d36e.tar.gz
vsrc_buffer: when no frame is available, return an error instead of segfaulting.
-rw-r--r--libavfilter/vsrc_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 665b33c1d4..dfe5bf5602 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -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);