Changeset 63c5015


Ignore:
Timestamp:
Nov 26, 2018, 4:59:56 PM (5 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
d050d02
Parents:
5c3061e
Message:

[dct] fail fftw creation if size <= 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/dct_fftw.c

    r5c3061e r63c5015  
    6464aubio_dct_fftw_t * new_aubio_dct_fftw (uint_t size) {
    6565  aubio_dct_fftw_t * s = AUBIO_NEW(aubio_dct_fftw_t);
    66   if (!s) {
     66  if ((sint_t)size <= 0) {
     67    AUBIO_ERR("dct_fftw: can only create with size > 0, requested %d\n",
     68        size);
    6769    goto beach;
    6870  }
Note: See TracChangeset for help on using the changeset viewer.