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
3835 return 0;3835 return 0;
3836}3836}
3837 3837
3838void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) {3838int32_t WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) {
3839 SWelsSvcCodingParam sConfig;3839 SWelsSvcCodingParam sConfig;
3840 int32_t iNumRefFrame = 1;3840 int32_t iNumRefFrame = 1;
3841 int32_t iRet = 0;
3841 memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam));3842 memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam));
3842 sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference;3843 sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference;
3843 sConfig.iLTRRefNum = pLTRValue->iLTRRefNum;3844 sConfig.iLTRRefNum = pLTRValue->iLTRRefNum;
@@ -3868,7 +3869,8 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 24 unmodified lines
3868 3869
3869 WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d",3870 WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d",
3870 sConfig.bEnableLongTermReference, sConfig.iLTRRefNum);3871 sConfig.bEnableLongTermReference, sConfig.iLTRRefNum);
3871 WelsEncoderParamAdjust (ppCtx, &sConfig);3872 iRet = WelsEncoderParamAdjust (ppCtx, &sConfig);
3873 return iRet;
3872}3874}
3873int32_t DynSliceRealloc (sWelsEncCtx* pCtx,3875int32_t DynSliceRealloc (sWelsEncCtx* pCtx,
3874 SFrameBSInfo* pFrameBsInfo,3876 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