ref: accd068a484c9b7658ea316a05c4c1c304919869
parent: b09cd26df2018d3172241bc3d4611fb0bd04babc
parent: b8ec8528b4f80ace84c6259a73e2133ae5432a36
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Mon Mar 26 05:24:00 EDT 2018
Merge pull request #2942 from mstorsjo/fix-msvc-warning 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);