changeset 25028:2cae9470f53b

Fix FPS from bitrate calculation (was 8 times larger than real value).
author voroshil
date Fri, 16 Nov 2007 17:57:12 +0000
parents 8344dae32c0f
children c9f20e41bc13
files stream/tvi_dshow.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_dshow.c	Thu Nov 15 22:16:41 2007 +0000
+++ b/stream/tvi_dshow.c	Fri Nov 16 17:57:12 2007 +0000
@@ -3272,7 +3272,7 @@
 		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: