mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
[libvpx] scan-build: Fix "Result of operation is garbage or undefined" in vp9/encoder/vp9_rd.c
This commit is contained in:
parent
653835efe0
commit
88ee4182d8
@ -589,7 +589,7 @@ void vp9_mv_pred(VP9_COMP *cpi, MACROBLOCK *x, uint8_t *ref_y_buffer,
|
|||||||
x->mbmi_ext->ref_mvs[ref_frame][1].as_int;
|
x->mbmi_ext->ref_mvs[ref_frame][1].as_int;
|
||||||
|
|
||||||
// Get the sad for each candidate reference mv.
|
// Get the sad for each candidate reference mv.
|
||||||
for (i = 0; i < num_mv_refs; ++i) {
|
for (i = 0; i < num_mv_refs && i < MAX_MV_REF_CANDIDATES + 1; ++i) {
|
||||||
const MV *this_mv = &pred_mv[i];
|
const MV *this_mv = &pred_mv[i];
|
||||||
int fp_row, fp_col;
|
int fp_row, fp_col;
|
||||||
if (this_mv->row == INT16_MAX || this_mv->col == INT16_MAX) continue;
|
if (this_mv->row == INT16_MAX || this_mv->col == INT16_MAX) continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user