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,8 +1267,9 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end,
|
|||
|
||||
/* Switch off dual stereo to do intensity */
|
||||
dual_stereo = 0;
|
||||
for (j=M*eBands[start];j<M*eBands[i];j++)
|
||||
norm[j] = HALF32(norm[j]+norm2[j]);
|
||||
if (resynth)
|
||||
for (j=M*eBands[start];j<M*eBands[i];j++)
|
||||
norm[j] = HALF32(norm[j]+norm2[j]);
|
||||
}
|
||||
if (dual_stereo)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue