Avoid the unnecessary resynth averaging on intensity switch when encoding.
Prevents some arithmetic on uninitialized memory that may contain nans.
This commit is contained in:
parent
a403d5f7b5
commit
37e135677a
1 changed files with 3 additions and 2 deletions
|
@ -1267,6 +1267,7 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end,
|
||||||
|
|
||||||
/* Switch off dual stereo to do intensity */
|
/* Switch off dual stereo to do intensity */
|
||||||
dual_stereo = 0;
|
dual_stereo = 0;
|
||||||
|
if (resynth)
|
||||||
for (j=M*eBands[start];j<M*eBands[i];j++)
|
for (j=M*eBands[start];j<M*eBands[i];j++)
|
||||||
norm[j] = HALF32(norm[j]+norm2[j]);
|
norm[j] = HALF32(norm[j]+norm2[j]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue