ref: b8ec8528b4f80ace84c6259a73e2133ae5432a36
parent: b91e1e5960be5987d96f0f21bdb805c63921971c
author: Martin Storsjö <martin@martin.st>
date: Fri Mar 23 04:33:01 EDT 2018
Avoid a warning with MSVC about converting from double to float
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -646,7 +646,7 @@
pStatistics->iLastStatisticsFrameCount);
if (kiDeltaFrames > (m_pEncContext->pSvcParam->fMaxFrameRate * 2)) {
if (kiTimeDiff >= m_pEncContext->iStatisticsLogInterval) {
- float fTimeDiffSec = kiTimeDiff / 1000.0;
+ float fTimeDiffSec = kiTimeDiff / 1000.0f;
pStatistics->fLatestFrameRate = static_cast<float> ((pStatistics->uiInputFrameCount -
pStatistics->iLastStatisticsFrameCount) / fTimeDiffSec);
pStatistics->uiBitRate = static_cast<unsigned int> ((pStatistics->iTotalEncodedBytes) * 8 / fTimeDiffSec);