History

need to be reset when eSpsPpsIdStrategy is changed

fix uiIdrPicId update issue

Karina committed 9 years ago

Commit 8b462d61 parent 1052fc62 files · +9 −3Browse 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+8−2
@@ -1049,9 +1049,15 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 1048 unmodified lines
10491049 m_pEncContext->pSvcParam->eSpsPpsIdStrategy, iValue);
10501050 return cmInitParaError;
10511051 }
1052− m_pEncContext->pSvcParam->eSpsPpsIdStrategy = eNewStrategy;
1052+ SWelsSvcCodingParam sConfig;
1053+ memcpy (&sConfig, m_pEncContext->pSvcParam, sizeof (SWelsSvcCodingParam));
1054+ sConfig.eSpsPpsIdStrategy = eNewStrategy;
10531055 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption eSpsPpsIdStrategy = %d ",
1054− m_pEncContext->pSvcParam->eSpsPpsIdStrategy);
1056+ sConfig.eSpsPpsIdStrategy);
1057+
1058+ if (WelsEncoderParamAdjust (&m_pEncContext, &sConfig)) {
1059+ return cmInitParaError;
1060+ }
10551061 }
10561062 break;
10571063 case ENCODER_OPTION_CURRENT_PATH: {

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