By removing the casts we make sure that the function signature actually matches and isn't silenced by the cast.
Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 1 file). Show all
Unified · Split
| @@ -150,11 +150,11 @@ int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t ki · 149 unmodified lines | ||
| 150 | 150 | |
| 151 | 151 | void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool_t kbEnableBackgroundDetection) { |
| 152 | 152 | if (kbEnableBackgroundDetection) { |
| 153 | − pFuncList->pfInterMdBackgroundDecision = (PInterMdBackgroundDecisionFunc)WelsMdInterJudgeBGDPskip; | |
| 154 | − pFuncList->pfInterMdBackgroundInfoUpdate = (PInterMdBackgroundInfoUpdateFunc)WelsMdInterUpdateBGDInfo; | |
| 153 | + pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskip; | |
| 154 | + pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfo; | |
| 155 | 155 | } else { |
| 156 | − pFuncList->pfInterMdBackgroundDecision = (PInterMdBackgroundDecisionFunc)WelsMdInterJudgeBGDPskipFalse; | |
| 157 | − pFuncList->pfInterMdBackgroundInfoUpdate = (PInterMdBackgroundInfoUpdateFunc)WelsMdInterUpdateBGDInfoNULL; | |
| 156 | + pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskipFalse; | |
| 157 | + pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfoNULL; | |
| 158 | 158 | } |
| 159 | 159 | } |
| 160 | 160 | |