History

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.

Martin Storsjö committed 12 years ago

Commit d1341551 parent 325dd1c1 file · +4 −4Browse files

Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder.cpp+4−4
@@ -150,11 +150,11 @@ int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t ki · 149 unmodified lines
150150
151151 void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool_t kbEnableBackgroundDetection) {
152152 if (kbEnableBackgroundDetection) {
153− pFuncList->pfInterMdBackgroundDecision = (PInterMdBackgroundDecisionFunc)WelsMdInterJudgeBGDPskip;
154− pFuncList->pfInterMdBackgroundInfoUpdate = (PInterMdBackgroundInfoUpdateFunc)WelsMdInterUpdateBGDInfo;
153+ pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskip;
154+ pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfo;
155155 } else {
156− pFuncList->pfInterMdBackgroundDecision = (PInterMdBackgroundDecisionFunc)WelsMdInterJudgeBGDPskipFalse;
157− pFuncList->pfInterMdBackgroundInfoUpdate = (PInterMdBackgroundInfoUpdateFunc)WelsMdInterUpdateBGDInfoNULL;
156+ pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskipFalse;
157+ pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfoNULL;
158158 }
159159 }
160160

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t