Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit cc87e71

Browse files
luoying1234U1X6WK
authored andcommitted
Fix build issue in PredictOption initialization.
Signed-off-by: Luo Ying <ying2.luo@intel.com>
1 parent e8bbb47 commit cc87e71

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/OmafDashAccess/OmafTracksSelector.cpp

Lines changed: 1 addition & 0 deletions
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;

src/utils/data_type.h

Lines changed: 2 additions & 2 deletions
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)