remove unnecessary flush buffer in encoder
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all
Unified · Split
| @@ -2827,8 +2827,6 @@ int32_t WritePadding (sWelsEncCtx* pCtx, int32_t iLen, int32_t& iSize) { · 2826 unmodified lines | ||
| 2827 | 2827 | |
| 2828 | 2828 | BsRbspTrailingBits (pBs); |
| 2829 | 2829 | |
| 2830 | − BsFlush (pBs); | |
| 2831 | − | |
| 2832 | 2830 | WelsUnloadNal (pCtx->pOut); |
| 2833 | 2831 | int32_t iReturn = WelsEncodeNal (&pCtx->pOut->sNalList[iNal], NULL, |
| 2834 | 2832 | pCtx->iFrameBsSize - pCtx->iPosBsBuffer, |