ref: c8afd15681c3200fb1ba8024f554bff933b12f57
parent: 44013d4cd5d3efd3aa189d3271a02cd70da63e94
author: Martin Storsjö <martin@martin.st>
date: Fri Nov 7 06:41:59 EST 2014
Add a cast when converting from double to float This fixes warnings with MSVC.
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -369,7 +369,7 @@
memcpy (pDecoderStatistics, &m_pDecContext->sDecoderStatistics, sizeof (SDecoderStatistics));
- pDecoderStatistics->fAverageFrameSpeedInMs = (m_pDecContext->dDecTime) /
+ pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) /
(m_pDecContext->sDecoderStatistics.uiDecodedFrameCount);
memset (&m_pDecContext->sDecoderStatistics, 0, sizeof (SDecoderStatistics));
m_pDecContext->dDecTime = 0;