Changeset e2eee03 for src/spectral


Ignore:
Timestamp:
Mar 11, 2014, 4:04:52 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:
b0fbd88
Parents:
a315be7
Message:

src/spectral/phasevoc.c: avoid unsigned < 0 comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/phasevoc.c

    ra315be7 re2eee03  
    112112  else pv->start = win_s - hop_s - hop_s;
    113113
    114   pv->end = MAX(0, win_s - hop_s);
     114  if (win_s > hop_s) pv->end = win_s - hop_s;
     115  else pv->end = 0;
    115116
    116117  pv->end_datasize = pv->end * sizeof(smpl_t);
Note: See TracChangeset for help on using the changeset viewer.