diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-17 00:22:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-17 00:22:09 +0200 |
commit | 8e3b1f259e5677fbc6d296666e9d7282a2ac3b86 (patch) | |
tree | 525336d30d4a0ae8303c793383e66f8ba4b65bef /libavfilter | |
parent | bd8f2fa525f05144f4457c9836376c1cd1e0673f (diff) | |
download | ffmpeg-8e3b1f259e5677fbc6d296666e9d7282a2ac3b86.tar.gz |
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')
-rw-r--r-- | libavfilter/buffersink.c | 2 |
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) |