From b4355b2f1d52b1b68bbe3dd632e1f7e713d589a5 Mon Sep 17 00:00:00 2001 From: voroshil Date: Fri, 16 Nov 2007 17:57:12 +0000 Subject: 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 --- stream/tvi_dshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') 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: -- cgit v1.2.3