Changeset 45f48576 for src


Ignore:
Timestamp:
Jul 7, 2014, 11:25: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:
58c408d
Parents:
d0bdf0c
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

    rd0bdf0c r45f48576  
    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.