History

refactor multi-thread logic

sijchen committed 10 years ago

Commit 2df092b1 parent 01016b12 files · +26 −35Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+6−0
@@ -4037,6 +4037,12 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 4036 unmodified lines
40374037
40384038 pCtx->pTaskManage->ExecuteTasks();
40394039 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+ }
40404046 }
40414047 // THREAD_FULLY_FIRE_MODE && SM_SIZELIMITED_SLICE
40424048 else if ((SM_SIZELIMITED_SLICE == pParam->sSliceArgument.uiSliceMode) && (pSvcParam->iMultipleThreadIdc > 1)) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t