shithub: libvpx

Download patch

ref: 891c4b3ce61e76a5fea48b37cc7a5ac91e02d68a
parent: f70f5dbae2f038d17a2fba4a7b20593533959fb6
parent: 37102e55ec3614b3a2509ac57d9faf8f14e17300
author: Hien Ho <hienho@google.com>
date: Thu Oct 3 19:34:20 EDT 2019

Merge "vpx_dsp/quantize: fix int sanitizer warnings"

--- a/vpx_dsp/quantize.c
+++ b/vpx_dsp/quantize.c
@@ -156,7 +156,7 @@
              quant_shift_ptr[rc != 0]) >>
             16;  // quantization
       qcoeff_ptr[rc] = (tmp ^ coeff_sign) - coeff_sign;
-      dqcoeff_ptr[rc] = qcoeff_ptr[rc] * dequant_ptr[rc != 0];
+      dqcoeff_ptr[rc] = (tran_low_t)(qcoeff_ptr[rc] * dequant_ptr[rc != 0]);
 
       if (tmp) eob = i;
     }