History

fix for a slicing and multi-threading setting

Sijia Chen committed 11 years ago

Commit 2dab8bf1 parent 597adfd2 files · +69 −0Browse 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+5−0
@@ -3975,6 +3975,11 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3974 unmodified lines
39753975
39763976 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
39773977
3978+ //the following line is to fix a problem with a specific setting as in test DiffSlicingInDlayerMixed:
3979+ // (multi-th on with SM_SINGLE_SLICE in one of the D layers)
3980+ //TODO: this may not be needed any more after the slice buffer refactoring
3981+ pCtx->pCurDqLayer->sLayerInfo.pSliceInLayer[0].pSliceBsa = &(pCtx->pOut->sBsWrite);
3982+
39783983 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, 0, eNalType);
39793984 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
39803985

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