[MPlayer-cvslog] r25056 - trunk/stream/tvi_dshow.c

voroshil subversion at mplayerhq.hu
Fri Nov 16 18:57:13 CET 2007


Author: voroshil
Date: Fri Nov 16 18:57:12 2007
New Revision: 25056

Log:
Fix FPS from bitrate calculation (was 8 times larger than real value).



Modified:
   trunk/stream/tvi_dshow.c

Modified: trunk/stream/tvi_dshow.c
==============================================================================
--- trunk/stream/tvi_dshow.c	(original)
+++ trunk/stream/tvi_dshow.c	Fri Nov 16 18:57:12 2007
@@ -3272,7 +3272,7 @@ static int control(priv_t * priv, int cm
 		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:



More information about the MPlayer-cvslog mailing list