Changeset 05a8c18 for src


Ignore:
Timestamp:
Feb 26, 2017, 11:36:21 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
Children:
41b4421
Parents:
53bb4da
Message:

src/io/source_sndfile.c: make sure seek position is >= 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r53bb4da r05a8c18  
    301301    return AUBIO_FAIL;
    302302  }
     303  if ((sint_t)pos < 0) {
     304    AUBIO_ERR("source_sndfile: could not seek %s at %d (seeking position"
     305       " should be >= 0)\n", s->path, pos);
     306    return AUBIO_FAIL;
     307  }
    303308  sf_ret = sf_seek (s->handle, resampled_pos, SEEK_SET);
    304309  if (sf_ret == -1) {
Note: See TracChangeset for help on using the changeset viewer.