Changeset 79dc9ad


Ignore:
Timestamp:
Dec 23, 2018, 5:44:18 AM (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/timestretch, fix/ffmpeg5, master
Children:
966c650
Parents:
724303e
Message:

[source_avcodec] show a warning only when an error occurred in swr_convert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r724303e r79dc9ad  
    464464      (const uint8_t **)avFrame->data, in_samples);
    465465#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
    466   if (out_samples <= 0) {
    467     AUBIO_WRN("source_avcodec: no sample found while converting frame (%s)\n",
    468         s->path);
     466  if (out_samples < 0) {
     467    AUBIO_WRN("source_avcodec: error while resampling %s (%d)\n",
     468        s->path, out_samples);
    469469    goto beach;
    470470  }
Note: See TracChangeset for help on using the changeset viewer.