diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-19 01:32:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-06-02 22:29:22 +0200 |
commit | 2e5433dc1209cf95a6a76dab2ddf21df4dfd630e (patch) | |
tree | 9e9d4428dbc857d4bdd8798017f7f7e91af326f0 /libavcodec/vvc/mvs.c | |
parent | 12391b732f811fc6e868be2f08dc188e508d2567 (diff) | |
download | ffmpeg-2e5433dc1209cf95a6a76dab2ddf21df4dfd630e.tar.gz |
avcodec/vvc/mvs: Initialize mvf
This might not be needed for correctness but it could
help general reproducability of issues
Related to: CID1560037 Uninitialized scalar variable
Related to: CID1560044 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vvc/mvs.c')
-rw-r--r-- | libavcodec/vvc/mvs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/vvc/mvs.c b/libavcodec/vvc/mvs.c index e78a9b4694..b96e750272 100644 --- a/libavcodec/vvc/mvs.c +++ b/libavcodec/vvc/mvs.c @@ -412,12 +412,11 @@ void ff_vvc_store_sb_mvs(const VVCLocalContext *lc, PredictionUnit *pu) const int sbw = cu->cb_width / mi->num_sb_x; const int sbh = cu->cb_height / mi->num_sb_y; SubblockParams params[2]; - MvField mvf; + MvField mvf = {0}; mvf.pred_flag = mi->pred_flag; mvf.bcw_idx = mi->bcw_idx; mvf.hpel_if_idx = mi->hpel_if_idx; - mvf.ciip_flag = 0; for (int i = 0; i < 2; i++) { const PredFlag mask = i + 1; if (mi->pred_flag & mask) { @@ -505,12 +504,11 @@ void ff_vvc_store_mvf(const VVCLocalContext *lc, const MvField *mvf) void ff_vvc_store_mv(const VVCLocalContext *lc, const MotionInfo *mi) { const CodingUnit *cu = lc->cu; - MvField mvf; + MvField mvf = {0}; mvf.hpel_if_idx = mi->hpel_if_idx; mvf.bcw_idx = mi->bcw_idx; mvf.pred_flag = mi->pred_flag; - mvf.ciip_flag = 0; for (int i = 0; i < 2; i++) { const PredFlag mask = i + 1; |