Add a cast when converting from double to float
Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -369,7 +369,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 368 unmodified lines | ||
| 369 | 369 | |
| 370 | 370 | memcpy (pDecoderStatistics, &m_pDecContext->sDecoderStatistics, sizeof (SDecoderStatistics)); |
| 371 | 371 | |
| 372 | − pDecoderStatistics->fAverageFrameSpeedInMs = (m_pDecContext->dDecTime) / | |
| 372 | + pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) / | |
| 373 | 373 | (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount); |
| 374 | 374 | memset (&m_pDecContext->sDecoderStatistics, 0, sizeof (SDecoderStatistics)); |
| 375 | 375 | m_pDecContext->dDecTime = 0; |