[FFmpeg-cvslog] vsrc_buffer: when no frame is available, return an error instead of segfaulting.
Anton Khirnov
git at videolan.org
Thu Apr 5 22:44:34 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Apr 1 15:18:00 2012 +0200| [a03f8ea0a8c70b72acc9d8307f1bba0f35c1d36e] | committer: Anton Khirnov
vsrc_buffer: when no frame is available, return an error instead of segfaulting.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a03f8ea0a8c70b72acc9d8307f1bba0f35c1d36e
---
libavfilter/vsrc_buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 665b33c..dfe5bf5 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);
More information about the ffmpeg-cvslog
mailing list