Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all
Unified · Split
| @@ -4061,9 +4061,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 4060 unmodified lines | ||
| 4061 | 4061 | // pick up succeeding slice for threading |
| 4062 | 4062 | // thread_id equal to iEventId per implementation here |
| 4063 | 4063 | pCtx->pSliceThreading->pThreadPEncCtx[iEventId].iSliceIndex = iIndexOfSliceToBeCoded; |
| 4064 | + SetOneSliceBsBufferUnderMultithread(pCtx, iEventId, iIndexOfSliceToBeCoded); | |
| 4064 | 4065 | WelsEventSignal (&pCtx->pSliceThreading->pReadySliceCodingEvent[iEventId]); |
| 4065 | 4066 | WelsEventSignal (&pCtx->pSliceThreading->pThreadMasterEvent[iEventId]); |
| 4066 | − | |
| 4067 | 4067 | ++ iIndexOfSliceToBeCoded; |
| 4068 | 4068 | } else { // no other slices left for coding |
| 4069 | 4069 | -- iNumThreadsRunning; |