Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 7 files). Show all
Unified · Split
| @@ -233,6 +233,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 232 unmodified lines | ||
| 233 | 233 | // for bitstream writing |
| 234 | 234 | pEncCtx->iPosBsBuffer = 0; // reset bs pBuffer position |
| 235 | 235 | pEncCtx->pOut->iNalIndex = 0; // reset NAL index |
| 236 | + pEncCtx->pOut->iLayerBsIndex = 0; // reset index of Layer Bs | |
| 236 | 237 | |
| 237 | 238 | InitBits (&pEncCtx->pOut->sBsWrite, pEncCtx->pOut->pBsBuffer, pEncCtx->pOut->uiSize); |
| 238 | 239 | |