Commit cdf989ad authored by Jingning Han's avatar Jingning Han
Browse files

Silence compiler above-boundary warnings

Change-Id: I6d806f92e8d38d5b0b01bc8e0fd97bd8839c84df
parent 0dccc85c
......@@ -1829,6 +1829,8 @@ static int rd_pick_palette_intra_sby(VP10_COMP *cpi, MACROBLOCK *x,
if (centroids[i] == centroids[i - 1]) {
j = i;
while (j < k - 1) {
assert((j + 1) < PALETTE_MAX_SIZE);
assert(j > 0);
centroids[j] = centroids[j + 1];
++j;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment