History

Set pfMeCost to NULL when it isn't initialized

This avoids using uninitialized data in the check for bSatdInMdFlag.

Martin Storsjö committed 11 years ago

Commit 0ef69e51 parent 5921e5e1 file · +2 −0Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+2−0
@@ -2982,6 +2982,8 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) { · 2981 unmodified lines
29822982 pFuncList->pfCalculateSatd = CalculateSatdCost;
29832983 pFuncList->pfInterFineMd = WelsMdInterFinePartition;
29842984 }
2985+ } else {
2986+ pFuncList->sSampleDealingFuncs.pfMeCost = NULL;
29852987 }
29862988
29872989 //to init at each frame will be needed when dealing with hybrid content (camera+screen)

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