Showing the changes to codec/encoder/core/src/svc_encode_slice.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1038,9 +1038,8 @@ int32_t WelsMdInterMbLoopOverDynamicSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice, · 1037 unmodified lines | ||
| 1038 | 1038 | int32_t iNextMbIdx = kiSliceFirstMbXY; |
| 1039 | 1039 | int32_t iCurMbIdx = -1; |
| 1040 | 1040 | int32_t iMbSkipRun = 0; |
| 1041 | − const int32_t kiMvdInterTableSize = (pEncCtx->pSvcParam->iSpatialLayerNum == 1 ? 648 : 972); | |
| 1042 | − const int32_t kiMvdInterTableStride = 1 + (kiMvdInterTableSize << 1); | |
| 1043 | − uint16_t* pMvdCostTable = &pEncCtx->pMvdCostTable[kiMvdInterTableSize]; | |
| 1041 | + const int32_t kiMvdInterTableStride = pEncCtx->iMvdCostTableStride; | |
| 1042 | + uint16_t* pMvdCostTable = &pEncCtx->pMvdCostTable[pEncCtx->iMvdCostTableSize]; | |
| 1044 | 1043 | const int32_t kiSliceIdx = pSlice->uiSliceIdx; |
| 1045 | 1044 | const int32_t kiPartitionId = (kiSliceIdx % pEncCtx->iActiveThreadsNum); |
| 1046 | 1045 | const uint8_t kuiChromaQpIndexOffset = pCurLayer->sLayerInfo.pPpsP->uiChromaQpIndexOffset; |