]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/video.c
configure: add decimate filter dependency on avcodec
[ffmpeg] / libavfilter / video.c
index 86332bcfe24e966b75123c91d08a4ecf5ba37168..9ab8edb12cfd9c8f26913ba4faaab624f230a21a 100644 (file)
@@ -248,6 +248,11 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
 
     FF_TPRINTF_START(NULL, start_frame); ff_tlog_link(NULL, link, 0); ff_tlog(NULL, " "); ff_tlog_ref(NULL, picref, 1);
 
+    if (link->closed) {
+        avfilter_unref_buffer(picref);
+        return AVERROR_EOF;
+    }
+
     if (!(start_frame = dst->start_frame))
         start_frame = default_start_frame;