shithub: libvpx

Download patch

ref: cf07d858095c404de131e29e2ae414d1892eb932
parent: 6df142e2ab4c10f7f57e76037e68f99ccb789852
author: Jerome Jiang <[email protected]>
date: Tue Jun 6 06:13:34 EDT 2017

Initialize cost_list all to INT_MAX.

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

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1758,7 +1758,7 @@
           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;