Changeset 1fe3ac2


Ignore:
Timestamp:
Dec 6, 2013, 5:23:08 AM (11 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, pitchshift, sampler, timestretch, yinfft+
Children:
0af9003
Parents:
3d5cddf
Message:

src/io/source_avcodec.c: wrap lines, remove old comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r3d5cddf r1fe3ac2  
    101101    char errorstr[errorstr_len];
    102102    if (av_strerror (err, errorstr, errorstr_len) == 0) {
    103       AUBIO_ERR("Could not find stream information for %s (%s)\n", s->path, errorstr);
    104     } else {
    105       AUBIO_ERR("Could not find stream information for %s (unknown error)\n", s->path);
    106     }
    107     goto beach;
    108   }
    109 
    110   // Dump information about file onto standard error
     103      AUBIO_ERR("Could not find stream information "
     104          "for %s (%s)\n", s->path, errorstr);
     105    } else {
     106      AUBIO_ERR("Could not find stream information "
     107          "for %s (unknown error)\n", s->path);
     108    }
     109    goto beach;
     110  }
     111
     112  // dump information about file onto standard error
    111113  //av_dump_format(avFormatCtx, 0, s->path, 0);
    112114
    113   // look for the first audio stream, printing a warning if more than one is found
     115  // look for the first audio stream
    114116  uint_t i;
    115117  sint_t selected_stream = -1;
     
    119121        selected_stream = i;
    120122      } else {
    121         AUBIO_WRN("More than one audio stream in %s, taking the first one\n", s->path);
     123        AUBIO_WRN("More than one audio stream in %s, "
     124            "taking the first one\n", s->path);
    122125      }
    123126    }
     
    176179    char errorstr[errorstr_len];
    177180    if (av_strerror (err, errorstr, errorstr_len) == 0) {
    178       AUBIO_ERR("Could not open AVAudioResampleContext for %s (%s)\n", s->path, errorstr);
    179     } else {
    180       AUBIO_ERR("Could not open AVAudioResampleContext for %s (unknown error)\n", s->path);
     181      AUBIO_ERR("Could not open AVAudioResampleContext for %s (%s)\n",
     182          s->path, errorstr);
     183    } else {
     184      AUBIO_ERR("Could not open AVAudioResampleContext for %s (unknown error)\n",
     185          s->path);
    181186    }
    182187    goto beach;
     
    280285  //    max_out_samples, AUBIO_AVCODEC_MIN_BUFFER_SIZE);
    281286
    282   //AUBIO_WRN("aubio_source_avcodec_readframe converted %d to %d samples\n", in_samples, out_samples);
    283   //for (i = 0; i < out_samples; i ++) {
    284   //  AUBIO_DBG("%f\n", SHORT_TO_FLOAT(output[i]));
    285   //}
    286287  av_free_packet(&avPacket);
    287288  s->avFormatCtx = avFormatCtx;
     
    293294  *read_samples = out_samples;
    294295}
    295 
    296296
    297297void aubio_source_avcodec_do(aubio_source_avcodec_t * s, fvec_t * read_data, uint_t * read){
Note: See TracChangeset for help on using the changeset viewer.