Merge pull request #1837 from mstorsjo/initialize-func-pointers

Set pfMeCost to NULL when it isn't initialized
This commit is contained in:
sijchen 2015-03-05 17:05:07 +08:00
commit 18b202df0a

View File

@ -2982,6 +2982,8 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) {
pFuncList->pfCalculateSatd = CalculateSatdCost; pFuncList->pfCalculateSatd = CalculateSatdCost;
pFuncList->pfInterFineMd = WelsMdInterFinePartition; pFuncList->pfInterFineMd = WelsMdInterFinePartition;
} }
} else {
pFuncList->sSampleDealingFuncs.pfMeCost = NULL;
} }
//to init at each frame will be needed when dealing with hybrid content (camera+screen) //to init at each frame will be needed when dealing with hybrid content (camera+screen)