Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 8 files). Show all
Unified · Split
| @@ -3682,6 +3682,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3681 unmodified lines | |||
| 3682 | 3682 | ||
| 3683 | WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc); | 3683 | WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc); |
| 3684 | assert (0 == (int) pCurSlice->uiSliceIdx); | 3684 | assert (0 == (int) pCurSlice->uiSliceIdx); |
| 3685 | pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, 0); | ||
| 3686 | WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS) | ||
| 3687 | |||
| 3685 | pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType); | 3688 | pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType); |
| 3686 | WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS) | 3689 | WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS) |
| 3687 | 3690 | ||
| @@ -3823,6 +3826,10 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 135 unmodified lines | |||
| 3823 | WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc); | 3826 | WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc); |
| 3824 | pCurSlice = pCtx->pCurDqLayer->ppSliceInLayer[iSliceIdx]; | 3827 | pCurSlice = pCtx->pCurDqLayer->ppSliceInLayer[iSliceIdx]; |
| 3825 | assert (iSliceIdx == (int) pCurSlice->uiSliceIdx); | 3828 | assert (iSliceIdx == (int) pCurSlice->uiSliceIdx); |
| 3829 | |||
| 3830 | pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, iSliceIdx); | ||
| 3831 | WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS) | ||
| 3832 | |||
| 3826 | pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType); | 3833 | pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType); |
| 3827 | WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS) | 3834 | WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS) |
| 3828 | 3835 | ||