Changeset 482fab8 for src/tempo


Ignore:
Timestamp:
Aug 1, 2015, 10:54:37 AM (4 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:
e11ce48
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.