[MPlayer-cvslog] r28962 - trunk/stream/tvi_v4l2.c

reimar subversion at mplayerhq.hu
Sun Mar 15 17:12:06 CET 2009


Author: reimar
Date: Sun Mar 15 17:12:05 2009
New Revision: 28962

Log:
100l fix calculation of dropped frames, number of frames is time * fps, not time / fps.

Modified:
   trunk/stream/tvi_v4l2.c

Modified: trunk/stream/tvi_v4l2.c
==============================================================================
--- trunk/stream/tvi_v4l2.c	Sun Mar 15 14:10:33 2009	(r28961)
+++ trunk/stream/tvi_v4l2.c	Sun Mar 15 17:12:05 2009	(r28962)
@@ -1126,7 +1126,7 @@ static int uninit(priv_t *priv)
         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 */



More information about the MPlayer-cvslog mailing list