Debug for (1) decoder crash when delay decoding (2) no output when EC off
Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 5 files). Show all
Unified · Split
| @@ -791,6 +791,14 @@ bool CheckSpsActive (PWelsDecoderContext pCtx, PSps pSps) { · 790 unmodified lines | |||
| 791 | if (pCtx->pActiveLayerSps[i] == pSps) | 791 | if (pCtx->pActiveLayerSps[i] == pSps) |
| 792 | return true; | 792 | return true; |
| 793 | } | 793 | } |
| 794 | // Pre-active, will be used soon | ||
| 795 | if (pSps->iMbWidth > 0 && pSps->iMbHeight > 0 && pCtx->bSpsAvailFlags[pSps->iSpsId] | ||
| 796 | && pCtx->pAccessUnitList->uiAvailUnitsNum > 0) { | ||
| 797 | PSps pNextUsedSps = | ||
| 798 | pCtx->pAccessUnitList->pNalUnitsList[pCtx->pAccessUnitList->uiStartPos]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps; | ||
| 799 | if (pNextUsedSps->iSpsId == pSps->iSpsId) | ||
| 800 | return true; | ||
| 801 | } | ||
| 794 | return false; | 802 | return false; |
| 795 | } | 803 | } |
| 796 | 804 | ||