vf_fps: add final flushed frames to the dropped frame count
authorJustin Ruggles <justin.ruggles@gmail.com>
Mon, 14 Jan 2013 18:43:15 +0000 (13:43 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 15 Jan 2013 16:26:46 +0000 (11:26 -0500)
libavfilter/vf_fps.c

index dc20114..8fd51bd 100644 (file)
@@ -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);
     }