From 37c6f0d36cab8654c68c6e6ab280bb20871d0464 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 15 Mar 2009 16:12:05 +0000 Subject: 100l fix calculation of dropped frames, number of frames is time * fps, not time / fps. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28962 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c index 0742135740..a5485bf07f 100644 --- a/stream/tvi_v4l2.c +++ b/stream/tvi_v4l2.c @@ -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 */ -- cgit v1.2.3