History

use iBitsVaryPercentage passed by the app instead of the macro

ruil2 committed 11 years ago

Commit 30820fd1 parent 7c0369d2 files · +4 −4Browse 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+3−3
@@ -1074,10 +1074,10 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 1073 unmodified lines
10741074 }
10751075 break;
10761076 case ENCODER_OPTION_BITS_VARY_PERCENTAGE: {
1077− bool bValue = * (static_cast<bool*> (pOption));
1078− m_pEncContext->pSvcParam->iBitsVaryPercentage = bValue;
1077+ int32_t iValue = * (static_cast<int32_t*> (pOption));
1078+ m_pEncContext->pSvcParam->iBitsVaryPercentage = iValue;
10791079 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
1080− "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", bValue);
1080+ "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue);
10811081 }
10821082 break;
10831083

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