Changeset 58c24e1 for src/io


Ignore:
Timestamp:
Apr 8, 2013, 11:17:29 PM (12 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:
69440b8
Parents:
8c7f80d
Message:

src/io/source_sndfile.c: fix copy of last channel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r8c7f80d r58c24e1  
    209209    // copy last channel to all additional channels
    210210    for (j = 0; j < read_samples / input_channels; j++) {
    211       for (i = input_channels; i < read_to->height; i++) {
    212         data[i][v] = s->scratch_data[ j * input_channels + (input_channels - 1)];
     211      for (i = input_channels; i < read_data->height; i++) {
     212        data[i][j] = s->scratch_data[ j * input_channels + (input_channels - 1)];
    213213      }
    214214    }
Note: See TracChangeset for help on using the changeset viewer.