Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1361,7 +1361,7 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx, SExistingParasetList* p · 1360 unmodified lines | |||
| 1361 | 1361 | ||
| 1362 | // Not using FMO in SVC coding so far, come back if need FMO | 1362 | // Not using FMO in SVC coding so far, come back if need FMO |
| 1363 | { | 1363 | { |
| 1364 | iResult = InitSlicePEncCtx (&(*ppCtx)->ppDqLayerList[iDlayerIndex]->sSliceEncCtx, | 1364 | iResult = InitSlicePEncCtx ((*ppCtx)->ppDqLayerList[iDlayerIndex], |
| 1365 | (*ppCtx)->pMemAlign, | 1365 | (*ppCtx)->pMemAlign, |
| 1366 | false, | 1366 | false, |
| 1367 | pSps->iMbWidth, | 1367 | pSps->iMbWidth, |
| @@ -2120,9 +2120,8 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 752 unmodified lines | |||
| 2120 | pDq->pFeatureSearchPreparation = NULL; | 2120 | pDq->pFeatureSearchPreparation = NULL; |
| 2121 | } | 2121 | } |
| 2122 | 2122 | ||
| 2123 | SSliceCtx* pSliceCtx = &pDq->sSliceEncCtx; | 2123 | if (NULL != pDq) { |
| 2124 | if (NULL != pSliceCtx) { | 2124 | UninitSlicePEncCtx (pDq, pMa); |
| 2125 | UninitSlicePEncCtx (pSliceCtx, pMa); | ||
| 2126 | } | 2125 | } |
| 2127 | 2126 | ||
| 2128 | pMa->WelsFree (pDq, "pDq"); | 2127 | pMa->WelsFree (pDq, "pDq"); |