ref: b3d04d88a0bed30b440463fbabee0971879aab50
parent: 43bc9d7c07854fc6d5846dbe89a2d8dac4890bf8
author: Martin Storsjö <martin@martin.st>
date: Fri Mar 14 17:09:35 EDT 2014
Check for the right function pointer This code checked whether one function pointer was non-null, but the went on to call a different function pointer. Check for the one that actually was called.
--- a/codec/encoder/core/src/svc_base_layer_md.cpp
+++ b/codec/encoder/core/src/svc_base_layer_md.cpp
@@ -473,7 +473,7 @@
iBestCost = INT_MAX;
iBestMode = kpAvailMode[0];
- if (pFunc->sSampleDealingFuncs.pfIntra4x4Combined3Satd && (iAvailCount >= 6)) {
+ if (pFunc->sSampleDealingFuncs.pfIntra4x4Combined3 && (iAvailCount >= 6)) {
pDst = &pMbCache->pMemPredBlk4[iBestPredBufferNum << 4];
iBestCost = pFunc->sSampleDealingFuncs.pfIntra4x4Combined3 (pCurDec, kiLineSizeDec, pCurEnc, kiLineSizeEnc, pDst,