Fixed potential overflows
authorYaowu Xu <yaowu@google.com>
Thu, 29 Aug 2013 17:26:52 +0000 (10:26 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 29 Aug 2013 17:26:52 +0000 (10:26 -0700)
commitaaa7b444607225a0655be6b97ace8128a176028c
treed45622e6aaff72b41dd66ed9f738995572444512
parentb71807082c10f44c5b80b7c81eaa90a93bd500e3
Fixed potential overflows

The two arrays are typically initialized to INT64_MAX, if they are not
filled with valid values before the addition, the values can overflow
and lead to wrong results.

Change-Id: I515de22cf3e8f55af4b74bdb2c8eb821a02d3059
vp9/encoder/vp9_rdopt.c