shithub: openh264

Download patch

ref: d6b4b5365d8e32fefa1d35a834284107fcc24c1e
parent: 75bbc286e1ee9326a24c91bc1ae92bc29a9664c9
author: Martin Storsjö <martin@martin.st>
date: Thu Jan 15 07:38:42 EST 2015

Declare a float constant as float instead of as double

This avoids warnings about converting from double to float
in MSVC.

--- a/codec/encoder/core/src/ratectl.cpp
+++ b/codec/encoder/core/src/ratectl.cpp
@@ -1367,7 +1367,7 @@
 
   RcInitSliceInformation (pEncCtx);
   RcInitGomParameters (pEncCtx);
-  float fInstantFps = (uiTimeStamp - pWelsSvcRc->uiLastTimeStamp) > 0 ? (1000.0 / (uiTimeStamp -
+  float fInstantFps = (uiTimeStamp - pWelsSvcRc->uiLastTimeStamp) > 0 ? (1000.0f / (uiTimeStamp -
                       pWelsSvcRc->uiLastTimeStamp)) : 0;
   WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_DEBUG,
            "[Rc]pEncCtx->iGlobalQp= %d,uiTimeStamp = %lld,uiLastTimeStamp = %lld,InstantFps = %f,settingFps = %f",