Changeset fe6a9a23 for src


Ignore:
Timestamp:
Nov 26, 2018, 4:29:42 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
813ced8
Parents:
7c85c15
Message:

[dct] fail ooura creation if size <= 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/dct_ooura.c

    r7c85c15 rfe6a9a23  
    3939aubio_dct_ooura_t * new_aubio_dct_ooura (uint_t size) {
    4040  aubio_dct_ooura_t * s = AUBIO_NEW(aubio_dct_ooura_t);
    41   if (aubio_is_power_of_two(size) != 1) {
    42     AUBIO_ERR("dct: can only create with sizes power of two, requested %d\n",
     41  if (aubio_is_power_of_two(size) != 1 || (sint_t)size <= 0) {
     42    AUBIO_ERR("dct_ooura: can only create with sizes power of two, requested %d\n",
    4343        size);
    4444    goto beach;
Note: See TracChangeset for help on using the changeset viewer.