summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-19 19:26:58 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-22 19:04:30 +0200
commitbeeba9161a091d4d352e6fe5224c86c383f1aaa7 (patch)
tree66d196392f6052e5ee633f93d721fcb3e289ef77 /libavfilter/video.c
parentac07f941ae1626bfd8e201a3771c67e54073e31e (diff)
downloadffmpeg-beeba9161a091d4d352e6fe5224c86c383f1aaa7.tar.gz
lavfi: add a closed field to AVFilerLink.
It will help forward errors and maintain consistency.
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c
index 86332bcfe2..9ab8edb12c 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -248,6 +248,11 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
FF_TPRINTF_START(NULL, start_frame); ff_tlog_link(NULL, link, 0); ff_tlog(NULL, " "); ff_tlog_ref(NULL, picref, 1);
+ if (link->closed) {
+ avfilter_unref_buffer(picref);
+ return AVERROR_EOF;
+ }
+
if (!(start_frame = dst->start_frame))
start_frame = default_start_frame;