Commit f5917820 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Fix compiler warning of out-of-bound array access

Change-Id: I00f147cd372cedc5038708b0f23f6fae68918528
parent dc972043
......@@ -912,7 +912,8 @@ int od_pvq_encode(daala_enc_ctx *enc,
int j;
int tmp;
tmp = 1;
for (j = i + 1; j < nb_bands; j += 3) {
// ToDo(yaowu): figure out better stop condition without gcc warning.
for (j = i + 1; j < nb_bands && j < PVQ_MAX_PARTITIONS; j += 3) {
if (theta[j] != skip_theta_value || qg[j]) tmp = 0;
}
skip_dir |= tmp << i;
......
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