Ignore:
Timestamp:
Dec 17, 2018, 2:01:06 AM (5 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:
0512fca
Parents:
d16fbba
Message:

[source] simplify and avoid unrequired checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rd16fbba rc0a1906  
    148148  s->channels = 1;
    149149
    150   if (s->path) AUBIO_FREE(s->path);
    151150  s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1);
    152151  strncpy(s->path, path, strnlen(path, PATH_MAX) + 1);
     
    640639
    641640void del_aubio_source_avcodec(aubio_source_avcodec_t * s){
    642   if (!s) return;
     641  AUBIO_ASSERT(s);
    643642  aubio_source_avcodec_close(s);
    644643  if (s->output != NULL) {
Note: See TracChangeset for help on using the changeset viewer.