History

fix bug in set option return value

huashi committed 12 years ago

Commit 8d5863a1 parent 452fb863 files · +11 −5Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+4−2
@@ -3835,9 +3835,10 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 3834 unmodified lines
38353835 return 0;
38363836 }
38373837
3838−void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) {
3838+int32_t WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) {
38393839 SWelsSvcCodingParam sConfig;
38403840 int32_t iNumRefFrame = 1;
3841+ int32_t iRet = 0;
38413842 memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam));
38423843 sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference;
38433844 sConfig.iLTRRefNum = pLTRValue->iLTRRefNum;
@@ -3868,7 +3869,8 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 24 unmodified lines
38683869
38693870 WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d",
38703871 sConfig.bEnableLongTermReference, sConfig.iLTRRefNum);
3871− WelsEncoderParamAdjust (ppCtx, &sConfig);
3872+ iRet = WelsEncoderParamAdjust (ppCtx, &sConfig);
3873+ return iRet;
38723874 }
38733875 int32_t DynSliceRealloc (sWelsEncCtx* pCtx,
38743876 SFrameBSInfo* pFrameBsInfo,

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