[FFmpeg-cvslog] vf_fps: add final flushed frames to the dropped frame count

Justin Ruggles git at videolan.org
Wed Jan 16 11:49:28 CET 2013


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Jan 14 13:43:15 2013 -0500| [23098bbd509346708b998094daf1dd98339fbc4b] | committer: Justin Ruggles

vf_fps: add final flushed frames to the dropped frame count

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23098bbd509346708b998094daf1dd98339fbc4b
---

 libavfilter/vf_fps.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index dc20114..8fd51bd 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);
     }



More information about the ffmpeg-cvslog mailing list