Commit a1a1e365 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Resolve some static analysis warnings

Mostly spurious warnings.

Change-Id: I95a415763a27a448781b9a3f9af80e53c7f98d20
parent 62c92e66
......@@ -723,6 +723,7 @@ static void compute_stats(int wiener_win, const uint8_t *dgd,
idx++;
}
}
assert(idx == wiener_win2);
for (k = 0; k < wiener_win2; ++k) {
M[k] += Y[k] * X;
H[k * wiener_win2 + k] += Y[k] * Y[k];
......@@ -780,6 +781,7 @@ static void compute_stats_highbd(int wiener_win, const uint8_t *dgd8,
idx++;
}
}
assert(idx == wiener_win2);
for (k = 0; k < wiener_win2; ++k) {
M[k] += Y[k] * X;
H[k * wiener_win2 + k] += Y[k] * Y[k];
......@@ -960,6 +962,7 @@ static double compute_score(int wiener_win, double *M, double *H,
a[WIENER_HALFWIN] -= 2 * a[i];
b[WIENER_HALFWIN] -= 2 * b[i];
}
memset(ab, 0, sizeof(ab));
for (k = 0; k < wiener_win; ++k) {
for (l = 0; l < wiener_win; ++l)
ab[k * wiener_win + l] = a[l + plane_off] * b[k + plane_off];
......
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