Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -4037,6 +4037,12 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 4036 unmodified lines | ||
| 4037 | 4037 | |
| 4038 | 4038 | pCtx->pTaskManage->ExecuteTasks(); |
| 4039 | 4039 | iLayerSize = AppendSliceToFrameBs (pCtx, pLayerBsInfo, iSliceCount); |
| 4040 | + if (pCtx->iEncoderError) { | |
| 4041 | + WelsLog (pLogCtx, WELS_LOG_ERROR, | |
| 4042 | + "WelsEncoderEncodeExt(), multi-slice (mode %d) encoding error!", | |
| 4043 | + pParam->sSliceArgument.uiSliceMode); | |
| 4044 | + return pCtx->iEncoderError; | |
| 4045 | + } | |
| 4040 | 4046 | } |
| 4041 | 4047 | // THREAD_FULLY_FIRE_MODE && SM_SIZELIMITED_SLICE |
| 4042 | 4048 | else if ((SM_SIZELIMITED_SLICE == pParam->sSliceArgument.uiSliceMode) && (pSvcParam->iMultipleThreadIdc > 1)) { |