changeset 28927:8f7c8a1cb8b7

100l fix calculation of dropped frames, number of frames is time * fps, not time / fps.
author reimar
date Sun, 15 Mar 2009 16:12:05 +0000
parents 241cb573f68b
children f2b3f28982b8
files stream/tvi_v4l2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_v4l2.c	Sun Mar 15 13:10:33 2009 +0000
+++ b/stream/tvi_v4l2.c	Sun Mar 15 16:12:05 2009 +0000
@@ -1126,7 +1126,7 @@
         struct v4l2_buffer buf;
 
         /* get performance */
-        frames = 1 + lrintf((double)(priv->curr_frame - priv->first_frame) / (1e6 * getfps(priv)));
+        frames = 1 + lrintf((double)(priv->curr_frame - priv->first_frame) / 1e6 * getfps(priv));
         dropped = frames - priv->frames;
 
         /* turn off streaming */