This avoids a warning when building with MSVC.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -617,8 +617,8 @@ void CWelsH264SVCEncoder::UpdateStatistics (const int64_t kiCurrentFrameTs, EVid · 616 unmodified lines | |||
| 617 | 617 | ||
| 618 | // rate control related | 618 | // rate control related |
| 619 | if (0 != m_pEncContext->uiStartTimestamp && kiCurrentFrameTs > m_pEncContext->uiStartTimestamp + 800) { | 619 | if (0 != m_pEncContext->uiStartTimestamp && kiCurrentFrameTs > m_pEncContext->uiStartTimestamp + 800) { |
| 620 | pStatistics->fAverageFrameRate = pStatistics->uiInputFrameCount * 1000 / | 620 | pStatistics->fAverageFrameRate = (float) (pStatistics->uiInputFrameCount * 1000 / |
| 621 | (kiCurrentFrameTs - m_pEncContext->uiStartTimestamp); | 621 | (kiCurrentFrameTs - m_pEncContext->uiStartTimestamp)); |
| 622 | } else { | 622 | } else { |
| 623 | m_pEncContext->uiStartTimestamp = kiCurrentFrameTs; | 623 | m_pEncContext->uiStartTimestamp = kiCurrentFrameTs; |
| 624 | } | 624 | } |