Showing the changes to codec/encoder/core/src/svc_encode_slice.cpp (1 of 13 files). Show all
Unified · Split
| @@ -89,14 +89,14 @@ void WelsSliceHeaderScalExtInit (SDqLayer* pCurLayer, SSlice* pSlice) { · 88 unmodified lines | ||
| 89 | 89 | void WelsSliceHeaderExtInit (sWelsEncCtx* pEncCtx, SDqLayer* pCurLayer, SSlice* pSlice) { |
| 90 | 90 | SSliceHeaderExt* pCurSliceExt = &pSlice->sSliceHeaderExt; |
| 91 | 91 | SSliceHeader* pCurSliceHeader = &pCurSliceExt->sSliceHeader; |
| 92 | − | |
| 92 | + SSpatialLayerInternal *pParamInternal = &pEncCtx->pSvcParam->sDependencyLayers[pEncCtx->uiDependencyId]; | |
| 93 | 93 | pCurSliceHeader->eSliceType = pEncCtx->eSliceType; |
| 94 | 94 | |
| 95 | 95 | pCurSliceExt->bStoreRefBasePicFlag = false; |
| 96 | 96 | |
| 97 | 97 | pCurSliceHeader->iFirstMbInSlice = WelsGetFirstMbOfSlice (pCurLayer->sLayerInfo.pSliceInLayer, pSlice->uiSliceIdx); |
| 98 | 98 | |
| 99 | − pCurSliceHeader->iFrameNum = pEncCtx->iFrameNum; | |
| 99 | + pCurSliceHeader->iFrameNum = pParamInternal->iFrameNum; | |
| 100 | 100 | pCurSliceHeader->uiIdrPicId = pEncCtx->uiIdrPicId; |
| 101 | 101 | |
| 102 | 102 | pCurSliceHeader->iPicOrderCntLsb = pEncCtx->pEncPic->iFramePoc; // 0 |