Add a cast when converting from double to float

This fixes warnings with MSVC.
This commit is contained in:
Martin Storsjö 2014-11-07 11:41:59 +02:00
parent 44013d4cd5
commit c8afd15681

View File

@ -369,7 +369,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) {
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;