Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 3 files). Show all
Unified · Split
| @@ -813,7 +813,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 812 unmodified lines | ||
| 813 | 813 | } |
| 814 | 814 | CheckAndFinishLastPic (pCtx, ppDst, pDstBufInfo); |
| 815 | 815 | if (pCtx->bAuReadyFlag && pCtx->pAccessUnitList->uiAvailUnitsNum != 0) { |
| 816 | − if (pCtx->pThreadCtx == NULL) { | |
| 816 | + if (GetThreadCount (pCtx) <= 1) { | |
| 817 | 817 | ConstructAccessUnit (pCtx, ppDst, pDstBufInfo); |
| 818 | 818 | } else { |
| 819 | 819 | pCtx->pAccessUnitList->uiAvailUnitsNum = 1; |
| @@ -873,11 +873,11 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 53 unmodified lines | ||
| 873 | 873 | if (IS_PARAM_SETS_NALS (pCtx->sCurNalHead.eNalUnitType)) { |
| 874 | 874 | iRet = ParseNonVclNal (pCtx, pNalPayload, iDstIdx - iConsumedBytes, pSrcNal - 3, iSrcIdx + 3); |
| 875 | 875 | } |
| 876 | − if (pCtx->pThreadCtx == NULL) { | |
| 876 | + if (GetThreadCount (pCtx) <= 1) { | |
| 877 | 877 | CheckAndFinishLastPic (pCtx, ppDst, pDstBufInfo); |
| 878 | 878 | } |
| 879 | 879 | if (pCtx->bAuReadyFlag && pCtx->pAccessUnitList->uiAvailUnitsNum != 0) { |
| 880 | − if (pCtx->pThreadCtx == NULL) { | |
| 880 | + if (GetThreadCount (pCtx) <= 1) { | |
| 881 | 881 | ConstructAccessUnit (pCtx, ppDst, pDstBufInfo); |
| 882 | 882 | } else { |
| 883 | 883 | pCtx->pAccessUnitList->uiAvailUnitsNum = 1; |