Silence compiler above-boundary warnings

Change-Id: I6d806f92e8d38d5b0b01bc8e0fd97bd8839c84df
This commit is contained in:
Jingning Han
2016-04-22 15:47:03 -07:00
parent 0dccc85c98
commit cdf989adb7

View File

@@ -1829,6 +1829,8 @@ static int rd_pick_palette_intra_sby(VP10_COMP *cpi, MACROBLOCK *x,
if (centroids[i] == centroids[i - 1]) { if (centroids[i] == centroids[i - 1]) {
j = i; j = i;
while (j < k - 1) { while (j < k - 1) {
assert((j + 1) < PALETTE_MAX_SIZE);
assert(j > 0);
centroids[j] = centroids[j + 1]; centroids[j] = centroids[j + 1];
++j; ++j;
} }