Changeset e9a2af1


Ignore:
Timestamp:
Jan 12, 2017, 10:58:01 PM (8 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, sampler, yinfft+
Children:
1160f11
Parents:
ed6b302
Message:

src/pitch/pitchfcomb.c: return NULL if fft creation failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchfcomb.c

    red6b302 re9a2af1  
    5454  p->fftSize = bufsize;
    5555  p->stepSize = hopsize;
     56  p->fft = new_aubio_fft (bufsize);
     57  if (!p->fft) goto beach;
    5658  p->winput = new_fvec (bufsize);
    5759  p->fftOut = new_cvec (bufsize);
    5860  p->fftLastPhase = new_fvec (bufsize);
    59   p->fft = new_aubio_fft (bufsize);
    6061  p->win = new_aubio_window ("hanning", bufsize);
    6162  return p;
     63
     64beach:
     65  AUBIO_FREE(p);
     66  return NULL;
    6267}
    6368
Note: See TracChangeset for help on using the changeset viewer.