Showing the changes to codec/encoder/core/src/ratectl.cpp (1 of 1 file). Show all
Unified · Split
| @@ -523,7 +523,7 @@ void RcInitSliceInformation (sWelsEncCtx* pEncCtx) { · 522 unmodified lines | ||
| 523 | 523 | pSOverRc->iEndMbSlice += (pSliceInLayer[i].iCountMbNumInSlice - 1); |
| 524 | 524 | pSOverRc->iTotalQpSlice = 0; |
| 525 | 525 | pSOverRc->iTotalMbSlice = 0; |
| 526 | − pSOverRc->iTargetBitsSlice = WELS_DIV_ROUND (kiBitsPerMb * pSliceInLayer[i].iCountMbNumInSlice, INT_MULTIPLY); | |
| 526 | + pSOverRc->iTargetBitsSlice = WELS_DIV_ROUND (static_cast<int64_t> (kiBitsPerMb) * pSliceInLayer[i].iCountMbNumInSlice, INT_MULTIPLY); | |
| 527 | 527 | pSOverRc->iFrameBitsSlice = 0; |
| 528 | 528 | pSOverRc->iGomBitsSlice = 0; |
| 529 | 529 | } |