diff options
author | Yaowu Xu <yaowu@google.com> | 2016-12-14 09:37:14 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2016-12-14 09:37:14 -0800 |
commit | 27e1bacdb3ab3317c0a1c8f62fec3f5b0824cf99 (patch) | |
tree | 1b91d395fdf48634726a666a8787052d1bbcc1b0 | |
parent | 3dd20456ab0e5a9daeea0cdcc82e1342c586b607 (diff) | |
download | libvpx-27e1bacdb3ab3317c0a1c8f62fec3f5b0824cf99.tar libvpx-27e1bacdb3ab3317c0a1c8f62fec3f5b0824cf99.tar.gz libvpx-27e1bacdb3ab3317c0a1c8f62fec3f5b0824cf99.tar.bz2 libvpx-27e1bacdb3ab3317c0a1c8f62fec3f5b0824cf99.zip |
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
-rw-r--r-- | vp8/decoder/threading.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c index 5b6200f67..9f7751988 100644 --- a/vp8/decoder/threading.c +++ b/vp8/decoder/threading.c @@ -318,7 +318,7 @@ static void mt_decode_mb_rows(VP8D_COMP *pbi, MACROBLOCKD *xd, 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) { |