Changeset 1f87c1b for python


Ignore:
Timestamp:
Apr 30, 2016, 6:34:06 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:
7498e48
Parents:
437ef07
Message:

python/ext/py-fft.c: check rdo input cvec has correct size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-fft.c

    r437ef07 r1f87c1b  
    122122  }
    123123
     124  if (self->cvecin.length != self->win_s / 2 + 1) {
     125    PyErr_Format(PyExc_ValueError,
     126                 "input array has length %d, but fft input has size %d",
     127                 self->vecin.length, self->win_s / 2 + 1);
     128    return NULL;
     129  }
     130
    124131  fvec_t out;
    125132  Py_INCREF(self->rdoout);
Note: See TracChangeset for help on using the changeset viewer.