1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

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
This commit is contained in:
reimar 2009-03-15 16:12:05 +00:00
parent 9f4e7d44b4
commit 37c6f0d36c

View File

@ -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 */