Fix valgrind failure on uninitialized variables.

BUG=webm:1440

Change-Id: I7074e42bdfa8dd25f11bbb3f2ab1b41d6f4c12e4
This commit is contained in:
Jerome Jiang
2017-06-05 11:41:02 -07:00
parent e30781ff80
commit ffe0f9b7fb
2 changed files with 2 additions and 2 deletions

View File

@@ -441,7 +441,7 @@ uint32_t vp9_find_best_sub_pixel_tree_pruned_evenmore(
cost_list[2] != INT_MAX && cost_list[3] != INT_MAX &&
cost_list[4] != INT_MAX && is_cost_list_wellbehaved(cost_list)) {
int ir, ic;
unsigned int minpt;
unsigned int minpt = INT_MAX;
get_cost_surf_min(cost_list, &ir, &ic, 2);
if (ir != 0 || ic != 0) {
CHECK_BETTER(minpt, tr + 2 * ir, tc + 2 * ic);

View File

@@ -1758,7 +1758,7 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, TileDataEnc *tile_data,
cpi->oxcf.rc_mode == VPX_CBR) {
int tmp_sad;
uint32_t dis;
int cost_list[5];
int cost_list[5] = { INT_MAX };
if (bsize < BLOCK_16X16) continue;