Changeset 482fab8 for src


Ignore:
Timestamp:
Aug 1, 2015, 10:54:37 AM (9 years ago)
Author:
Paul Brossier <piem@piem.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:
e11ce489
Parents:
e391790
Message:

src/tempo/beattracking.c: avoid segfault on silence (closes #24)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/beattracking.c

    re391790 r482fab8  
    267267  sint_t k = 0;
    268268  smpl_t three_energy = 0., four_energy = 0.;
     269  if (gp < 2) return 4;
    269270  if (acflen > 6 * gp + 2) {
    270271    for (k = -2; k < 2; k++) {
Note: See TracChangeset for help on using the changeset viewer.