diff options
author | John Glover <glover.john@gmail.com> | 2010-12-02 19:39:43 +0000 |
---|---|---|
committer | John Glover <glover.john@gmail.com> | 2010-12-02 19:39:43 +0000 |
commit | 6d21f1d6741851711e3bc589a44e194634c19eca (patch) | |
tree | bc32aad26495b9c9ce1a84664651c5cbd248bbda /sms/analysis.c | |
parent | e5625a21b62f11c7eccc0808a77766b50d973ea4 (diff) | |
download | simpl-6d21f1d6741851711e3bc589a44e194634c19eca.tar.gz simpl-6d21f1d6741851711e3bc589a44e194634c19eca.tar.bz2 simpl-6d21f1d6741851711e3bc589a44e194634c19eca.zip |
Fixed some memory bugs in SMS caused by incorrect array boundary checking
Diffstat (limited to 'sms/analysis.c')
-rw-r--r-- | sms/analysis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sms/analysis.c b/sms/analysis.c index f4da530..a435a5a 100644 --- a/sms/analysis.c +++ b/sms/analysis.c @@ -87,7 +87,7 @@ void sms_analyzeFrame(int iCurrentFrame, SMS_AnalParams *pAnalParams, sfloat fRe /* find a reference harmonic */ if(pCurrentFrame->nPeaks > 0 && (pAnalParams->iFormat == SMS_FORMAT_H || pAnalParams->iFormat == SMS_FORMAT_HP)) - pCurrentFrame->fFundamental = sms_harmDetection(pAnalParams->nTracks, pCurrentFrame->pSpectralPeaks, + pCurrentFrame->fFundamental = sms_harmDetection(pAnalParams->maxPeaks, pCurrentFrame->pSpectralPeaks, fRefFundamental, pAnalParams->iRefHarmonic, pAnalParams->fLowestFundamental, pAnalParams->fHighestFundamental, pAnalParams->iSoundType, pAnalParams->fMinRefHarmMag, |