ref: d215a5f879483aaca6dba6abe4ca5f139f192829
parent: ab1778a523ae7ee8721f173231ded6048d5251a5
author: Martin Storsjö <[email protected]>
date: Thu Jul 24 20:46:35 EDT 2014
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.
--- a/codec/encoder/core/src/ratectl.cpp
+++ b/codec/encoder/core/src/ratectl.cpp
@@ -1012,7 +1012,7 @@
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;