Showing the changes to codec/decoder (1 of 1 file). Show all
Unified · Split
| @@ -1497,11 +1497,11 @@ static bool CheckNewSeqBeginAndUpdateActiveLayerSps(PWelsDecoderContext pCtx) { · 1496 unmodified lines | |||
| 1497 | pTmpLayerSps[i] = NULL; | 1497 | pTmpLayerSps[i] = NULL; |
| 1498 | } | 1498 | } |
| 1499 | // track the layer sps for the current au | 1499 | // track the layer sps for the current au |
| 1500 | for(int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) { | 1500 | for(unsigned int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) { |
| 1501 | uint32_t uiDid = pCurAu->pNalUnitsList[i]->sNalHeaderExt.uiDependencyId; | 1501 | uint32_t uiDid = pCurAu->pNalUnitsList[i]->sNalHeaderExt.uiDependencyId; |
| 1502 | pTmpLayerSps[uiDid] = pCurAu->pNalUnitsList[i]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps; | 1502 | pTmpLayerSps[uiDid] = pCurAu->pNalUnitsList[i]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps; |
| 1503 | } | 1503 | } |
| 1504 | int iMaxActiveLayer, iMaxCurrentLayer; | 1504 | int iMaxActiveLayer = 0, iMaxCurrentLayer = 0; |
| 1505 | for(int i = MAX_LAYER_NUM - 1; i >= 0; i--) { | 1505 | for(int i = MAX_LAYER_NUM - 1; i >= 0; i--) { |
| 1506 | if (pCtx->pActiveLayerSps[i] != NULL) { | 1506 | if (pCtx->pActiveLayerSps[i] != NULL) { |
| 1507 | iMaxActiveLayer = i; | 1507 | iMaxActiveLayer = i; |