]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_fps: Avoid inlink fifo build up.
authorNikolas Bowe <nbowe@google.com>
Thu, 29 Aug 2019 02:13:20 +0000 (19:13 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Sep 2019 15:21:54 +0000 (17:21 +0200)
When duplicating frames we need to schedule for activation again, otherwise frames can build up in the inlink fifo.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_fps.c

index 6b99f20d2bb367ac3593138fd0bd770d79ba3b36..cf1e36726aeffd407e7e0e9ae5f5ac28cd251138 100644 (file)
@@ -256,7 +256,7 @@ static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlin
         av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n",
                s->frames[0]->pts, frame->pts);
         s->cur_frame_out++;
-
+        *again = 1;
         return ff_filter_frame(outlink, frame);
     }
 }