# HG changeset patch # User voroshil # Date 1195235832 0 # Node ID 2cae9470f53b989aebaeafc3d7a1396fd4a9ee13 # Parent 8344dae32c0fdfa3f83979981d3d86995bdbdf9b Fix FPS from bitrate calculation (was 8 times larger than real value). diff -r 8344dae32c0f -r 2cae9470f53b stream/tvi_dshow.c --- 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: