Actually use iMinQp in WelRcPictureInitBufferBasedQp

This fixes a warning in certain builds, about the variable iMinQp
being set but not used. This also probably is what was intended originally.
This commit is contained in:
Martin Storsjö 2014-07-25 00:46:35 +03:00
parent ab1778a523
commit d215a5f879

View File

@ -1012,7 +1012,7 @@ void WelRcPictureInitBufferBasedQp (void* pCtx) {
iMinQp = MIN_SCREEN_QP;
pEncCtx->iGlobalQp += pEncCtx->iDropNumber;
pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, MIN_SCREEN_QP, MAX_SCREEN_QP);
pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, iMinQp, MAX_SCREEN_QP);
}
void WelsRcInitModule (void* pCtx, RC_MODES iRcMode) {
sWelsEncCtx* pEncCtx = (sWelsEncCtx*)pCtx;