Changeset 4bb32f4 for src/mathutils.c


Ignore:
Timestamp:
Nov 24, 2007, 5:25:56 PM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
9638f84
Parents:
44d7cb7
Message:

mathutils.c: fix invalid read in vec_moving_thres

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r44d7cb7 r4bb32f4  
    227227  /* pre part of the buffer does not exist */
    228228  } else {
    229     for (k=0;k<length-pos+post+1;k++)
     229    for (k=0;k<length-pos+post;k++)
    230230      medar[k] = vec->data[0][k+pos-post];
    231     for (k=length-pos+post+1;k<win_length;k++)
     231    for (k=length-pos+post;k<win_length;k++)
    232232      medar[k] = 0.; /* 0-padding at the end */
    233233  }
Note: See TracChangeset for help on using the changeset viewer.