Showing the changes to codec/encoder/core/src/ratectl.cpp (1 of 14 files). Show all
Unified · Split
| @@ -547,7 +547,7 @@ void RcDecideTargetBits (sWelsEncCtx* pEncCtx) { · 546 unmodified lines | |||
| 547 | SRCTemporal* pTOverRc = &pWelsSvcRc->pTemporalOverRc[pEncCtx->uiTemporalId]; | 547 | SRCTemporal* pTOverRc = &pWelsSvcRc->pTemporalOverRc[pEncCtx->uiTemporalId]; |
| 548 | 548 | ||
| 549 | pWelsSvcRc->iCurrentBitsLevel = BITS_NORMAL; | 549 | pWelsSvcRc->iCurrentBitsLevel = BITS_NORMAL; |
| 550 | //allocate bits | 550 | //allocate bits |
| 551 | if (pEncCtx->eSliceType == I_SLICE) { | 551 | if (pEncCtx->eSliceType == I_SLICE) { |
| 552 | pWelsSvcRc->iTargetBits = pWelsSvcRc->iBitsPerFrame * IDR_BITRATE_RATIO; | 552 | pWelsSvcRc->iTargetBits = pWelsSvcRc->iBitsPerFrame * IDR_BITRATE_RATIO; |
| 553 | } else { | 553 | } else { |