Changeset 99c7aa2 for src/io


Ignore:
Timestamp:
Aug 6, 2018, 2:04:48 PM (6 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
Children:
6b98ab9
Parents:
25f280f
Message:

src/io/source_wavread.c: also exit if samplerate is negative (closes #188)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    r25f280f r99c7aa2  
    196196  }
    197197
    198   if ( sr == 0 ) {
    199     AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be 0)\n", s->path);
     198  if ( (sint_t)sr <= 0 ) {
     199    AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be <= 0)\n", s->path);
    200200    goto beach;
    201201  }
Note: See TracChangeset for help on using the changeset viewer.