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
2982 pFuncList->pfCalculateSatd = CalculateSatdCost;2982 pFuncList->pfCalculateSatd = CalculateSatdCost;
2983 pFuncList->pfInterFineMd = WelsMdInterFinePartition;2983 pFuncList->pfInterFineMd = WelsMdInterFinePartition;
2984 }2984 }
2985 } else {
2986 pFuncList->sSampleDealingFuncs.pfMeCost = NULL;
2985 }2987 }
2986 2988
2987 //to init at each frame will be needed when dealing with hybrid content (camera+screen)2989 //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