On Sun, May 19, 2024 at 10:28:49PM +0800, Nuo Mi wrote: > On Sun, May 19, 2024 at 10:50 AM Michael Niedermayer > wrote: > > > 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 > > --- > > libavcodec/vvc/mvs.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/libavcodec/vvc/mvs.c b/libavcodec/vvc/mvs.c > > index fe7d9234603..521cf96a896 100644 > > --- a/libavcodec/vvc/mvs.c > > +++ b/libavcodec/vvc/mvs.c > > @@ -411,7 +411,7 @@ 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; > > @@ -504,7 +504,7 @@ 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; > > -- > > 2.45.1 > > > both "mvf.ciip_flag = 0" are not needed if we set mvf to 0 locally changed thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB it is not once nor twice but times without number that the same ideas make their appearance in the world. -- Aristotle