summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-16 17:57:12 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-16 17:57:12 +0000
commitb4355b2f1d52b1b68bbe3dd632e1f7e713d589a5 (patch)
tree4235bb44d639459e6637f00772121ac634ffc85a /stream
parent873a53b5462bccfb27b6fd53c98a957f67306084 (diff)
downloadmpv-b4355b2f1d52b1b68bbe3dd632e1f7e713d589a5.tar.bz2
mpv-b4355b2f1d52b1b68bbe3dd632e1f7e713d589a5.tar.xz
Fix FPS from bitrate calculation (was 8 times larger than real value).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25056 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/tvi_dshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c
index 20048a0c71..1c7d70d906 100644
--- a/stream/tvi_dshow.c
+++ b/stream/tvi_dshow.c
@@ -3272,7 +3272,7 @@ static int control(priv_t * priv, int cmd, void *arg)
return TVI_CONTROL_FALSE;
Vhdr = (VIDEOINFOHEADER *) priv->pmtVideo->pbFormat;
*(float *) arg =
- (1.0 * Vhdr->dwBitRate) / Vhdr->bmiHeader.biSizeImage;
+ (1.0 * Vhdr->dwBitRate) / (Vhdr->bmiHeader.biSizeImage * 8);
return TVI_CONTROL_TRUE;
}
case TVI_CONTROL_IMMEDIATE: