Commit 133a9878 authored by Jean-Marc Valin's avatar Jean-Marc Valin Committed by Jean-Marc Valin
Browse files

Prevent PVQ SSE search from putting pulses beyond n-1

Change-Id: Ib9fec5f2e00ecd73006a603a61d3fddee5229cf8
parent 80360585
......@@ -181,6 +181,8 @@ double pvq_search_rdo_double_sse4_1(const od_val16 *xcoeff, int n, int k,
count = _mm_add_ps(count, _mm_set_ps(4, 4, 4, 4));
}
}
lambda_delta_rate[n] = lambda_delta_rate[n + 1] = lambda_delta_rate[n + 2] =
1e30f;
for (i = 0; i < pulses_left; i++) {
int best_id = 0;
......
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