summaryrefslogtreecommitdiff
path: root/libavfilter/vf_fps.c
diff options
context:
space:
mode:
authorNikolas Bowe <nbowe@google.com>2019-08-28 19:13:20 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2019-09-10 17:21:54 +0200
commitb794df43f3a521985f27d40974316db40b64cc88 (patch)
treeaf45ddd51564596d2a23a8978073cde401a51d1c /libavfilter/vf_fps.c
parent857fd2ad99032e3ff51363975997d0caf0e72e7b (diff)
avfilter/vf_fps: Avoid inlink fifo build up.
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>
Diffstat (limited to 'libavfilter/vf_fps.c')
-rw-r--r--libavfilter/vf_fps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index 6b99f20d2b..cf1e36726a 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -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);
}
}