Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2911,6 +2911,7 @@ int32_t WelsEncoderEncodeParameterSets (sWelsEncCtx* pCtx, void* pDst) { · 2910 unmodified lines | |||
| 2911 | pLayerBsInfo->pNalLengthInByte = pCtx->pOut->pNalLen; | 2911 | pLayerBsInfo->pNalLengthInByte = pCtx->pOut->pNalLen; |
| 2912 | InitBits (&pCtx->pOut->sBsWrite, pCtx->pOut->pBsBuffer, pCtx->pOut->uiSize); | 2912 | InitBits (&pCtx->pOut->sBsWrite, pCtx->pOut->pBsBuffer, pCtx->pOut->uiSize); |
| 2913 | 2913 | ||
| 2914 | pCtx->iPosBsBuffer = 0; | ||
| 2914 | int32_t iReturn = WelsWriteParameterSets (pCtx, &pLayerBsInfo->pNalLengthInByte[0], &iCountNal); | 2915 | int32_t iReturn = WelsWriteParameterSets (pCtx, &pLayerBsInfo->pNalLengthInByte[0], &iCountNal); |
| 2915 | WELS_VERIFY_RETURN_IFNEQ (iReturn, ENC_RETURN_SUCCESS) | 2916 | WELS_VERIFY_RETURN_IFNEQ (iReturn, ENC_RETURN_SUCCESS) |
| 2916 | 2917 | ||
| @@ -2922,6 +2923,7 @@ int32_t WelsEncoderEncodeParameterSets (sWelsEncCtx* pCtx, void* pDst) { · 5 unmodified lines | |||
| 2922 | 2923 | ||
| 2923 | pCtx->eLastNalPriority = NRI_PRI_HIGHEST; | 2924 | pCtx->eLastNalPriority = NRI_PRI_HIGHEST; |
| 2924 | pFbi->iLayerNum = 1; | 2925 | pFbi->iLayerNum = 1; |
| 2926 | pFbi->eFrameType = videoFrameTypeInvalid; | ||
| 2925 | 2927 | ||
| 2926 | WelsEmms(); | 2928 | WelsEmms(); |
| 2927 | 2929 | ||