Changeset 4d6024f


Ignore:
Timestamp:
Jan 31, 2015, 12:15:33 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:
bc6b2af
Parents:
fdeba11
Message:

src/io/sink_wavwrite.c: fail if samplerate is way too large

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_wavwrite.c

    rfdeba11 r4d6024f  
    102102  // zero samplerate given. do not open yet
    103103  if ((sint_t)samplerate == 0) return s;
     104  // samplerate way too large, fail
     105  if ((sint_t)samplerate > 192000 * 4) goto beach;
    104106
    105107  s->samplerate = samplerate;
Note: See TracChangeset for help on using the changeset viewer.