Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 997f0b5

Browse files
luoying1234U1X6WK
authored andcommitted
Fix build issue in PredictOption initialization.
Signed-off-by: Luo Ying <[email protected]>
1 parent 7750713 commit 997f0b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: src/OmafDashAccess/OmafTracksSelector.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ int OmafTracksSelector::EnablePosePrediction(std::string predictPluginName, std:
283283
// 2. initial plugin
284284
ViewportPredictPlugin *plugin = mPredictPluginMap.at(mPredictPluginName);
285285
PredictOption option;
286+
memset_s(&option, sizeof(PredictOption), 0);
286287
option.usingFeedbackAngleAdjust = true;
287288
if (enableExtractor){
288289
option.mode = PredictionMode::SingleViewpoint;

Diff for: src/utils/data_type.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ typedef enum {
184184
}PredictionMode;
185185

186186
typedef struct PREDICTOPTION {
187-
PredictionMode mode = UNKNOWN;
188-
bool usingFeedbackAngleAdjust = false;
187+
PredictionMode mode;
188+
bool usingFeedbackAngleAdjust;
189189
}PredictOption;
190190

191191
#ifdef __cplusplus

0 commit comments

Comments
 (0)