Commit 8e3b1f25 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/buffersink: return EOF if closed link in av_buffersink_get_frame_flags()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bd8f2fa5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment