[libvpx] scan-build: Assigned value is garbage or undefined
This commit is contained in:
parent
92a55cf85a
commit
51ef2f261a
|
@ -72,7 +72,7 @@ static int remap_prob(int v, int m) {
|
||||||
i = recenter_nonneg(MAX_PROB - 1 - v, MAX_PROB - 1 - m) - 1;
|
i = recenter_nonneg(MAX_PROB - 1 - v, MAX_PROB - 1 - m) - 1;
|
||||||
|
|
||||||
assert(i >= 0 && (size_t)i < sizeof(map_table));
|
assert(i >= 0 && (size_t)i < sizeof(map_table));
|
||||||
i = map_table[i];
|
if (i >= 0 && (size_t)i < sizeof(map_table)) i = map_table[i];
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue