[FFmpeg-cvslog] avfilter/buffersink: return EOF if closed link in av_buffersink_get_frame_flags()

Michael Niedermayer git at videolan.org
Sun May 17 00:57:41 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 17 00:22:09 2015 +0200| [8e3b1f259e5677fbc6d296666e9d7282a2ac3b86] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e3b1f259e5677fbc6d296666e9d7282a2ac3b86
---

 libavfilter/buffersink.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index 525f97b..b145e35 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)



More information about the ffmpeg-cvslog mailing list