Changeset 283d93f


Ignore:
Timestamp:
Jul 21, 2006, 3:42:07 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
f3f28b1
Parents:
e43c018
Message:

avoid out of boundaries write in yinfft
avoid out of boundaries write in yinfft

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitchyinfft.c

    re43c018 r283d93f  
    102102  for (l=0; l < p->fftout->length; l++){
    103103          p->sqrmag->data[0][l] = SQR(p->fftout->norm[0][l]);
     104          p->sqrmag->data[0][l] *= p->weight->data[0][l];
     105  }
     106  for (l=1; l < p->fftout->length; l++){
    104107          p->sqrmag->data[0][(p->fftout->length-1)*2-l] =
    105                 SQR(p->fftout->norm[0][l]);
    106           p->sqrmag->data[0][l] *= p->weight->data[0][l];
     108           SQR(p->fftout->norm[0][l]);
    107109          p->sqrmag->data[0][(p->fftout->length-1)*2-l] *=
    108110                 p->weight->data[0][l];
Note: See TracChangeset for help on using the changeset viewer.