Browse Source

vf_fps: add final flushed frames to the dropped frame count

tags/n1.2
Justin Ruggles 12 years ago
parent
commit
23098bbd50
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/vf_fps.c

+ 1
- 0
libavfilter/vf_fps.c View File

@@ -104,6 +104,7 @@ static av_cold void uninit(AVFilterContext *ctx)
{ {
FPSContext *s = ctx->priv; FPSContext *s = ctx->priv;
if (s->fifo) { if (s->fifo) {
s->drop += av_fifo_size(s->fifo) / sizeof(AVFilterBufferRef*);
flush_fifo(s->fifo); flush_fifo(s->fifo);
av_fifo_free(s->fifo); av_fifo_free(s->fifo);
} }


Loading…
Cancel
Save