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 | CheckAndFinishLastPic (pCtx, ppDst, pDstBufInfo); | 814 | CheckAndFinishLastPic (pCtx, ppDst, pDstBufInfo); |
| 815 | if (pCtx->bAuReadyFlag && pCtx->pAccessUnitList->uiAvailUnitsNum != 0) { | 815 | if (pCtx->bAuReadyFlag && pCtx->pAccessUnitList->uiAvailUnitsNum != 0) { |
| 816 | if (pCtx->pThreadCtx == NULL) { | 816 | if (GetThreadCount (pCtx) <= 1) { |
| 817 | ConstructAccessUnit (pCtx, ppDst, pDstBufInfo); | 817 | ConstructAccessUnit (pCtx, ppDst, pDstBufInfo); |
| 818 | } else { | 818 | } else { |
| 819 | pCtx->pAccessUnitList->uiAvailUnitsNum = 1; | 819 | pCtx->pAccessUnitList->uiAvailUnitsNum = 1; |
| @@ -873,11 +873,11 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 53 unmodified lines | |||
| 873 | if (IS_PARAM_SETS_NALS (pCtx->sCurNalHead.eNalUnitType)) { | 873 | if (IS_PARAM_SETS_NALS (pCtx->sCurNalHead.eNalUnitType)) { |
| 874 | iRet = ParseNonVclNal (pCtx, pNalPayload, iDstIdx - iConsumedBytes, pSrcNal - 3, iSrcIdx + 3); | 874 | iRet = ParseNonVclNal (pCtx, pNalPayload, iDstIdx - iConsumedBytes, pSrcNal - 3, iSrcIdx + 3); |
| 875 | } | 875 | } |
| 876 | if (pCtx->pThreadCtx == NULL) { | 876 | if (GetThreadCount (pCtx) <= 1) { |
| 877 | CheckAndFinishLastPic (pCtx, ppDst, pDstBufInfo); | 877 | CheckAndFinishLastPic (pCtx, ppDst, pDstBufInfo); |
| 878 | } | 878 | } |
| 879 | if (pCtx->bAuReadyFlag && pCtx->pAccessUnitList->uiAvailUnitsNum != 0) { | 879 | if (pCtx->bAuReadyFlag && pCtx->pAccessUnitList->uiAvailUnitsNum != 0) { |
| 880 | if (pCtx->pThreadCtx == NULL) { | 880 | if (GetThreadCount (pCtx) <= 1) { |
| 881 | ConstructAccessUnit (pCtx, ppDst, pDstBufInfo); | 881 | ConstructAccessUnit (pCtx, ppDst, pDstBufInfo); |
| 882 | } else { | 882 | } else { |
| 883 | pCtx->pAccessUnitList->uiAvailUnitsNum = 1; | 883 | pCtx->pAccessUnitList->uiAvailUnitsNum = 1; |