Remove an unnecessary cast when setting function pointers
By removing the casts we make sure that the function signature actually matches and isn't silenced by the cast.
This commit is contained in:
parent
325dd1ce32
commit
d1341554dd
@ -150,11 +150,11 @@ int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t ki
|
||||
|
||||
void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool_t kbEnableBackgroundDetection) {
|
||||
if (kbEnableBackgroundDetection) {
|
||||
pFuncList->pfInterMdBackgroundDecision = (PInterMdBackgroundDecisionFunc)WelsMdInterJudgeBGDPskip;
|
||||
pFuncList->pfInterMdBackgroundInfoUpdate = (PInterMdBackgroundInfoUpdateFunc)WelsMdInterUpdateBGDInfo;
|
||||
pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskip;
|
||||
pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfo;
|
||||
} else {
|
||||
pFuncList->pfInterMdBackgroundDecision = (PInterMdBackgroundDecisionFunc)WelsMdInterJudgeBGDPskipFalse;
|
||||
pFuncList->pfInterMdBackgroundInfoUpdate = (PInterMdBackgroundInfoUpdateFunc)WelsMdInterUpdateBGDInfoNULL;
|
||||
pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskipFalse;
|
||||
pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfoNULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user