| 2132 | } |
| 2133 | |
| 2134 | int32_t WelsDecodeAccessUnitStart (PWelsDecoderContext pCtx) { |
| 2135 | // Roll back NAL units not being belong to current access unit list for proceeded access unit |
| 2136 | int32_t iRet = UpdateAccessUnit (pCtx); |
| 2137 | if (iRet != ERR_NONE) |
| 2138 | return iRet; |
| 2139 | |
| 2140 | pCtx->pAccessUnitList->uiStartPos = 0; |
| 2141 | if (!pCtx->sSpsPpsCtx.bAvcBasedFlag && !CheckIntegrityNalUnitsList (pCtx)) { |
| 2142 | pCtx->iErrorCode |= dsBitstreamError; |
| 2143 | return dsBitstreamError; |
| 2144 | } |
| 2145 | |
| 2146 | //check current AU has only one layer or not |
| 2147 | //If YES, can use deblocking based on AVC |
| 2148 | if (!pCtx->sSpsPpsCtx.bAvcBasedFlag) { |
| 2149 | CheckOnlyOneLayerInAu (pCtx); |
| 2150 | } |
| 2151 | |
| 2152 | return ERR_NONE; |
| 2153 | } |
| 2154 | |
| 2155 | void WelsDecodeAccessUnitEnd (PWelsDecoderContext pCtx) { |
| 2156 | //save previous header info |
no test coverage detected