diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 5f62ffd078..ea22d37b54 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -103,7 +103,7 @@ static av_cold void uninit(AVFilterContext *ctx) { FPSContext *s = ctx->priv; if (s->fifo) { - s->drop += av_fifo_size(s->fifo) / sizeof(AVFilterBufferRef*); + s->drop += av_fifo_size(s->fifo) / sizeof(AVFrame*); flush_fifo(s->fifo); av_fifo_free(s->fifo); }