This avoids using uninitialized data in the check for bSatdInMdFlag.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2982,6 +2982,8 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) { · 2981 unmodified lines | ||
| 2982 | 2982 | pFuncList->pfCalculateSatd = CalculateSatdCost; |
| 2983 | 2983 | pFuncList->pfInterFineMd = WelsMdInterFinePartition; |
| 2984 | 2984 | } |
| 2985 | + } else { | |
| 2986 | + pFuncList->sSampleDealingFuncs.pfMeCost = NULL; | |
| 2985 | 2987 | } |
| 2986 | 2988 | |
| 2987 | 2989 | //to init at each frame will be needed when dealing with hybrid content (camera+screen) |