From 23098bbd509346708b998094daf1dd98339fbc4b Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Mon, 14 Jan 2013 13:43:15 -0500 Subject: [PATCH] vf_fps: add final flushed frames to the dropped frame count --- libavfilter/vf_fps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index dc20114804..8fd51bd42e 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -104,6 +104,7 @@ static av_cold void uninit(AVFilterContext *ctx) { FPSContext *s = ctx->priv; if (s->fifo) { + s->drop += av_fifo_size(s->fifo) / sizeof(AVFilterBufferRef*); flush_fifo(s->fifo); av_fifo_free(s->fifo); }