summaryrefslogtreecommitdiff
path: root/libavfilter/buffersink.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-17 00:22:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-17 00:22:09 +0200
commit8e3b1f259e5677fbc6d296666e9d7282a2ac3b86 (patch)
tree525336d30d4a0ae8303c793383e66f8ba4b65bef /libavfilter/buffersink.c
parentbd8f2fa525f05144f4457c9836376c1cd1e0673f (diff)
avfilter/buffersink: return EOF if closed link in av_buffersink_get_frame_flags()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/buffersink.c')
-rw-r--r--libavfilter/buffersink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index 525f97bfb0..b145e35c3f 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -132,6 +132,8 @@ int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFr
/* no picref available, fetch it from the filterchain */
if (!av_fifo_size(buf->fifo)) {
+ if (inlink->closed)
+ return AVERROR_EOF;
if (flags & AV_BUFFERSINK_FLAG_NO_REQUEST)
return AVERROR(EAGAIN);
if ((ret = ff_request_frame(inlink)) < 0)