Changeset 2510248


Ignore:
Timestamp:
Dec 20, 2018, 7:05:50 PM (5 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:
efaeaf1
Parents:
6a253e8
Message:

[source_avcodec] use padding helpers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r6a253e8 r2510248  
    515515    }
    516516  }
    517   if (total_wrote < length) {
    518     for (i = total_wrote; i < length; i++) {
    519       read_data->data[i] = 0.;
    520     }
    521   }
     517
     518  aubio_source_pad_output(read_data, total_wrote);
     519
    522520  *read = total_wrote;
    523521}
     
    553551    }
    554552  }
    555   if (total_wrote < length) {
    556     for (j = 0; j < channels; j++) {
    557       for (i = total_wrote; i < length; i++) {
    558         read_data->data[j][i] = 0.;
    559       }
    560     }
    561   }
     553
     554  aubio_source_pad_multi_output(read_data, s->input_channels, total_wrote);
     555
    562556  *read = total_wrote;
    563557}
Note: See TracChangeset for help on using the changeset viewer.