History

add comment for interface and better condiction for warning trace

Sijia Chen committed 11 years ago

Commit 8b7af7c1 parent 585b6162 files · +3 −2Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+2−1
@@ -597,7 +597,8 @@ void CWelsH264SVCEncoder::UpdateStatistics (const int64_t kiCurrentFrameTs, EVid · 596 unmodified lines
597597 }
598598
599599 if (m_pEncContext->pSvcParam->iRCMode == RC_QUALITY_MODE || m_pEncContext->pSvcParam->iRCMode == RC_BITRATE_MODE) {
600− if (WELS_ABS (pStatistics->fLatestFrameRate - m_pEncContext->pSvcParam->fMaxFrameRate) > 5) {
600+ if ((pStatistics->fLatestFrameRate > 0)
601+ && WELS_ABS (m_pEncContext->pSvcParam->fMaxFrameRate - pStatistics->fLatestFrameRate) > 5) {
601602 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
602603 "Actual Input Framerate %f is different from framerate in setting %f, suggest to use other rate control modes",
603604 pStatistics->fLatestFrameRate, m_pEncContext->pSvcParam->fMaxFrameRate);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t