mirror of
https://github.com/webmproject/libwebp.git
synced 2025-12-23 21:46:26 +01:00
Make uint32_t multiplication explicitly uint64_t
There cannot be any overflow in practice, this is to quiet some analyzer. Change-Id: Ib76fc13aa27b72063ba6032f659987f47bb57117
This commit is contained in:
@@ -270,7 +270,7 @@ static int FastMBAnalyze(VP8EncIterator* const it) {
|
||||
}
|
||||
for (m = 0, m2 = 0, k = 0; k < 16; ++k) {
|
||||
m += dc[k];
|
||||
m2 += dc[k] * dc[k];
|
||||
m2 += (uint64_t)dc[k] * dc[k];
|
||||
}
|
||||
if (kThreshold * m2 < m * m) {
|
||||
VP8SetIntra16Mode(it, 0); // DC16
|
||||
|
||||
Reference in New Issue
Block a user