ref: 27e1bacdb3ab3317c0a1c8f62fec3f5b0824cf99
parent: 3dd20456ab0e5a9daeea0cdcc82e1342c586b607
author: Yaowu Xu <[email protected]>
date: Wed Dec 14 04:37:14 EST 2016
Change order of operation to avoid ubsan warnings This commit change an order of operation to avoid left shifts of negative numbers. Change-Id: I607c7eb91658c7a5ef397fc1504721d1b10e3dd6
--- a/vp8/decoder/threading.c
+++ b/vp8/decoder/threading.c
@@ -318,7 +318,7 @@
xd->left_available = 0;
- xd->mb_to_top_edge = -((mb_row * 16)) << 3;
+ xd->mb_to_top_edge = -((mb_row * 16) << 3);
xd->mb_to_bottom_edge = ((pc->mb_rows - 1 - mb_row) * 16) << 3;
if (pbi->common.filter_level) {