summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: