]> granicus.if.org Git - libvpx/commitdiff
Initialize cost_list all to INT_MAX.
authorJerome Jiang <jianj@google.com>
Tue, 6 Jun 2017 17:13:34 +0000 (10:13 -0700)
committerJerome Jiang <jianj@google.com>
Tue, 6 Jun 2017 17:42:37 +0000 (10:42 -0700)
It is initialized to be { INT_MAX, 0, ... } in ffe0f9b.
No effect on encoders.
Make it consistent with other initializations.

BUG=webm:1440

Change-Id: Ie2a180d93626b55914c8c4255e466a1986d2b922

vp9/encoder/vp9_pickmode.c

index da6ee10bbe14185f227e68aa5399833244a0a540..fc0629f2b67b0171855f2300cdf76ce4fa551b6b 100644 (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_MAX };
+        int cost_list[5] = { INT_MAX, INT_MAX, INT_MAX, INT_MAX, INT_MAX };
 
         if (bsize < BLOCK_16X16) continue;