clear active PS when only IDR meets
This commit is contained in:
parent
7ef2e9553c
commit
eb1276013b
@ -322,6 +322,10 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((uiAvailNalNum == 1) && ((NAL_UNIT_CODED_SLICE_IDR == pNalUnitHeader->eNalUnitType)
|
||||
|| (pCurNal->sNalHeaderExt.bIdrFlag))) {
|
||||
ResetActiveSPSForEachLayer (pCtx);
|
||||
}
|
||||
if ((uiAvailNalNum > 1) &&
|
||||
CheckAccessUnitBoundary (pCtx, pCurAu->pNalUnitsList[uiAvailNalNum - 1], pCurAu->pNalUnitsList[uiAvailNalNum - 2],
|
||||
pCurAu->pNalUnitsList[uiAvailNalNum - 1]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user