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
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -412,12 +412,11 @@ void ff_vvc_store_sb_mvs(const VVCLocalContext *lc, PredictionUnit *pu) · 411 unmodified lines | ||
| 412 | 412 | const int sbw = cu->cb_width / mi->num_sb_x; |
| 413 | 413 | const int sbh = cu->cb_height / mi->num_sb_y; |
| 414 | 414 | SubblockParams params[2]; |
| 415 | − MvField mvf; | |
| 415 | + MvField mvf = {0}; | |
| 416 | 416 | |
| 417 | 417 | mvf.pred_flag = mi->pred_flag; |
| 418 | 418 | mvf.bcw_idx = mi->bcw_idx; |
| 419 | 419 | mvf.hpel_if_idx = mi->hpel_if_idx; |
| 420 | − mvf.ciip_flag = 0; | |
| 421 | 420 | for (int i = 0; i < 2; i++) { |
| 422 | 421 | const PredFlag mask = i + 1; |
| 423 | 422 | if (mi->pred_flag & mask) { |
| @@ -505,12 +504,11 @@ void ff_vvc_store_mvf(const VVCLocalContext *lc, const MvField *mvf) · 81 unmodified lines | ||
| 505 | 504 | void ff_vvc_store_mv(const VVCLocalContext *lc, const MotionInfo *mi) |
| 506 | 505 | { |
| 507 | 506 | const CodingUnit *cu = lc->cu; |
| 508 | − MvField mvf; | |
| 507 | + MvField mvf = {0}; | |
| 509 | 508 | |
| 510 | 509 | mvf.hpel_if_idx = mi->hpel_if_idx; |
| 511 | 510 | mvf.bcw_idx = mi->bcw_idx; |
| 512 | 511 | mvf.pred_flag = mi->pred_flag; |
| 513 | − mvf.ciip_flag = 0; | |
| 514 | 512 | |
| 515 | 513 | for (int i = 0; i < 2; i++) { |
| 516 | 514 | const PredFlag mask = i + 1; |