Ignore:
Timestamp:
Oct 3, 2016, 11:47:25 AM (8 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, sampler, yinfft+
Children:
724922c
Parents:
f91737d
Message:

src/io/source_avcodec.c: fix missing samples in eof block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rf91737d reacc55c  
    352352  }
    353353  if (total_wrote < s->hop_size) {
    354     for (i = end; i < s->hop_size; i++) {
     354    for (i = total_wrote; i < s->hop_size; i++) {
    355355      read_data->data[i] = 0.;
    356356    }
     
    387387  if (total_wrote < s->hop_size) {
    388388    for (j = 0; j < read_data->height; j++) {
    389       for (i = end; i < s->hop_size; i++) {
     389      for (i = total_wrote; i < s->hop_size; i++) {
    390390        read_data->data[j][i] = 0.;
    391391      }
Note: See TracChangeset for help on using the changeset viewer.