Commit 2ceaf10e authored by Alex Converse's avatar Alex Converse

Do not use the value of 'rate_mv' if uninitialized.

This happens when exiting single_motion_search() early due to adaptive_motion_search.

Change-Id: Ic396e7e31e59ff219bb66a459c873c9e5b17400d
parent e3178d0c
...@@ -2708,6 +2708,8 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, ...@@ -2708,6 +2708,8 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
int_mv tmp_mv; int_mv tmp_mv;
single_motion_search(cpi, x, tile, bsize, mi_row, mi_col, single_motion_search(cpi, x, tile, bsize, mi_row, mi_col,
&tmp_mv, &rate_mv); &tmp_mv, &rate_mv);
if (tmp_mv.as_int == INVALID_MV)
return INT64_MAX;
*rate2 += rate_mv; *rate2 += rate_mv;
frame_mv[refs[0]].as_int = frame_mv[refs[0]].as_int =
xd->mi_8x8[0]->bmi[0].as_mv[0].as_int = tmp_mv.as_int; xd->mi_8x8[0]->bmi[0].as_mv[0].as_int = tmp_mv.as_int;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment