projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7004146
)
vp8/encoder/vp8_quantize: fix int sanitizer warnings
author
Hien Ho
<hienho@google.com>
Tue, 13 Aug 2019 23:32:23 +0000
(16:32 -0700)
committer
Hien Ho
<hienho@google.com>
Tue, 27 Aug 2019 19:05:53 +0000
(19:05 +0000)
implicit conversion from type 'int' of value 65536
(32-bit, signed) to type 'short' changed the value to 0 (16-bit, signed)
BUG=webm:1615
Change-Id: I6a04e57bd3272934de9c75fab60a1620ff6c3636
vp8/encoder/vp8_quantize.c
patch
|
blob
|
history
diff --git
a/vp8/encoder/vp8_quantize.c
b/vp8/encoder/vp8_quantize.c
index
ff6e04e
..
5b89555
100644
(file)
--- a/
vp8/encoder/vp8_quantize.c
+++ b/
vp8/encoder/vp8_quantize.c
@@
-174,8
+174,6
@@
static void invert_quant(int improved_quant, short *quant, short *shift,
} else {
*quant = (1 << 16) / d;
*shift = 0;
- /* use multiplication and constant shift by 16 */
- *shift = 1 << (16 - *shift);
}
}