Changeset 4edba9d


Ignore:
Timestamp:
Dec 20, 2018, 7:26:08 PM (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:
4c72a9c
Parents:
1ddb9d1
Message:

[io] fix source output padding sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/ioutils.c

    r1ddb9d1 r4edba9d  
    9797{
    9898  if (source_read < read_data->length) {
    99     AUBIO_MEMSET(read_data->data + source_read, 0, read_data->length -
    100         source_read);
     99    AUBIO_MEMSET(read_data->data + source_read, 0,
     100        (read_data->length - source_read) * sizeof(smpl_t));
    101101  }
    102102}
     
    109109    for (i = 0; i < read_data->height; i++) {
    110110      AUBIO_MEMSET(read_data->data[i] + source_read, 0,
    111           read_data->length - source_read);
     111          (read_data->length - source_read) * sizeof(smpl_t));
    112112    }
    113113  }
Note: See TracChangeset for help on using the changeset viewer.