Ignore:
Timestamp:
Feb 26, 2017, 11:37:22 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:
cf5c2ca
Parents:
41b4421
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r41b4421 r4d44531  
    485485    return ret;
    486486  }
     487  if ((sint_t)pos < 0) {
     488    AUBIO_ERR("source_avcodec: could not seek %s at %d (seeking position"
     489       " should be >= 0)\n", s->path, pos);
     490    return AUBIO_FAIL;
     491  }
    487492  ret = avformat_seek_file(s->avFormatCtx, s->selected_stream,
    488493      min_ts, resampled_pos, max_ts, seek_flags);
Note: See TracChangeset for help on using the changeset viewer.