Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 29 files). Show all
Unified · Split
| @@ -651,7 +651,7 @@ int32_t WriteSliceBs (sWelsEncCtx* pCtx, uint8_t* pSliceBsBuf, const int32_t iSl · 650 unmodified lines | ||
| 651 | 651 | int32_t iNalIdx = 0; |
| 652 | 652 | int32_t iNalSize = 0; |
| 653 | 653 | int32_t iReturn = ENC_RETURN_SUCCESS; |
| 654 | − const int32_t kiWrittenLength = (int32_t) (pSliceBs->sBsWrite.pBufPtr - pSliceBs->sBsWrite.pBuf); | |
| 654 | + const int32_t kiWrittenLength = (int32_t) (pSliceBs->sBsWrite.pCurBuf - pSliceBs->sBsWrite.pStartBuf); | |
| 655 | 655 | |
| 656 | 656 | iSliceSize = 0; |
| 657 | 657 | assert (kiNalCnt <= 2); |