History

SSliceCtx struture refactoring----change input paramters for Init/UninitSlicePEncCtx()

huade committed 10 years ago

Commit b60bb671 parent 268e6cf3 files · +26 −23Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+3−4
@@ -1361,7 +1361,7 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx, SExistingParasetList* p · 1360 unmodified lines
13611361
13621362 // Not using FMO in SVC coding so far, come back if need FMO
13631363 {
1364− iResult = InitSlicePEncCtx (&(*ppCtx)->ppDqLayerList[iDlayerIndex]->sSliceEncCtx,
1364+ iResult = InitSlicePEncCtx ((*ppCtx)->ppDqLayerList[iDlayerIndex],
13651365 (*ppCtx)->pMemAlign,
13661366 false,
13671367 pSps->iMbWidth,
@@ -2120,9 +2120,8 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 752 unmodified lines
21202120 pDq->pFeatureSearchPreparation = NULL;
21212121 }
21222122
2123− SSliceCtx* pSliceCtx = &pDq->sSliceEncCtx;
2124− if (NULL != pSliceCtx) {
2125− UninitSlicePEncCtx (pSliceCtx, pMa);
2123+ if (NULL != pDq) {
2124+ UninitSlicePEncCtx (pDq, pMa);
21262125 }
21272126
21282127 pMa->WelsFree (pDq, "pDq");

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