Changeset 0d475dc


Ignore:
Timestamp:
Aug 24, 2014, 7:24:09 PM (10 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:
81c99be
Parents:
ce24ae0
git-author:
Paul Brossier <piem@piem.org> (07/07/14 23:25:09)
git-committer:
Paul Brossier <piem@piem.org> (08/24/14 19:24:09)
Message:

src/io/source_sndfile.c: fix crash, zero-pad output vector when upsampling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    rce24ae0 r0d475dc  
    185185  if (*read < s->hop_size) {
    186186    for (j = *read; j < s->hop_size; j++) {
    187       data[j] = 0;
     187      read_data->data[j] = 0;
    188188    }
    189189  }
     
    248248    for (i = 0; i < read_data->height; i++) {
    249249      for (j = *read; j < s->hop_size; j++) {
    250         data[i][j] = 0.;
     250        read_data->data[i][j] = 0.;
    251251      }
    252252    }
Note: See TracChangeset for help on using the changeset viewer.