]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/buffersink.c
avcodec: loongson3 optimized h264dsp weighted mc with mmi
[ffmpeg] / libavfilter / buffersink.c
index 525f97bfb0c492d6f34292646d98883f3dc930ae..b145e35c3f92022162cfff6bf12446c231566ed3 100644 (file)
@@ -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)