vf_fps: add final flushed frames to the dropped frame count

This commit is contained in:
Justin Ruggles 2013-01-14 13:43:15 -05:00
parent 0b22107d95
commit 23098bbd50
1 changed files with 1 additions and 0 deletions

View 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);
}