Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 1 file). Show all
Unified · Split
| @@ -511,9 +511,7 @@ int32_t AppendSliceToFrameBs (sWelsEncCtx* pCtx, SLayerBSInfo* pLbi, const int32 · 510 unmodified lines | ||
| 511 | 511 | int32_t iSliceIdx = 0; |
| 512 | 512 | |
| 513 | 513 | if (!kbIsDynamicSlicingMode) { |
| 514 | − pSliceBs = &pCtx->pSliceBs[0]; | |
| 515 | − iLayerSize = pSliceBs->uiBsPos; // assign with base pSlice first | |
| 516 | − iSliceIdx = 0; | |
| 514 | + pSliceBs = &pCtx->pSliceBs[0]; | |
| 517 | 515 | iNalIdxBase = pLbi->iNalCount = 0; |
| 518 | 516 | while (iSliceIdx < iSliceCount) { |
| 519 | 517 | if (pSliceBs != NULL && pSliceBs->uiBsPos > 0) { |