shithub: libvpx

Download patch

ref: b2850357277af3dfb6e0a300793bc5ae4264c463
parent: 9dadf3189ac6d0798f12bdf2ba2d2408b2825b1d
parent: ca42eebf62dd42de185734aaeb346035eeee3061
author: Hien Ho <hienho@google.com>
date: Mon Oct 14 13:18:08 EDT 2019

Merge "vp8/decoder/decodeframe: fix int sanitizer warnings"

--- a/vp8/decoder/decodeframe.c
+++ b/vp8/decoder/decodeframe.c
@@ -211,7 +211,7 @@
           vp8_short_inv_walsh4x4(&b->dqcoeff[0], xd->qcoeff);
           memset(b->qcoeff, 0, 16 * sizeof(b->qcoeff[0]));
         } else {
-          b->dqcoeff[0] = b->qcoeff[0] * xd->dequant_y2[0];
+          b->dqcoeff[0] = (short)(b->qcoeff[0] * xd->dequant_y2[0]);
           vp8_short_inv_walsh4x4_1(&b->dqcoeff[0], xd->qcoeff);
           memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0]));
         }