need to reset when eSpsPpsIdStrategy is changed
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -4393,7 +4393,7 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 4392 unmodified lines | ||
| 4393 | 4393 | //if WelsInitEncoderExt succeed |
| 4394 | 4394 | //for LTR or SPS,PPS ID update |
| 4395 | 4395 | for (iIndexD = 0; iIndexD < pNewParam->iSpatialLayerNum; iIndexD++) { |
| 4396 | − pNewParam->sDependencyLayers[iIndexD].uiIdrPicId = uiMaxIdrPicId; | |
| 4396 | + (*ppCtx)->pSvcParam->sDependencyLayers[iIndexD].uiIdrPicId = uiMaxIdrPicId; | |
| 4397 | 4397 | } |
| 4398 | 4398 | |
| 4399 | 4399 | //for sEncoderStatistics |