shithub: libvpx

Download patch

ref: f0279ceb9282cbaa316640c386765cfcc1cfef81
parent: 6444958f62f272300137d0aaf411f3a4c363f366
parent: 566f6d75bdbf6ad85e191017facbb642ccc4059b
author: James Zern <jzern@google.com>
date: Wed May 24 12:27:21 EDT 2017

Merge "partial_idct_test,InitInput: fix rollover in mult"

--- a/test/partial_idct_test.cc
+++ b/test/partial_idct_test.cc
@@ -133,7 +133,7 @@
     for (int j = 0; j < last_nonzero_; ++j) {
       tran_low_t coeff = static_cast<tran_low_t>(
           sqrt(1.0 * max_energy_leftover) * (rnd_.Rand16() - 32768) / 65536);
-      max_energy_leftover -= coeff * coeff;
+      max_energy_leftover -= static_cast<int64_t>(coeff) * coeff;
       if (max_energy_leftover < 0) {
         max_energy_leftover = 0;
         coeff = 0;