Changeset a27576b


Ignore:
Timestamp:
Sep 21, 2016, 3:23:22 PM (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, pitchshift, sampler, timestretch, yinfft+
Children:
fa5d8ad
Parents:
e087a50
Message:

src/io/source_wavread.c: fix bytes_read for JUNK headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    re087a50 ra27576b  
    136136    }
    137137    bytes_read += bytes_junk;
    138     bytes_expected += bytes_junk;
     138    bytes_expected += bytes_junk + 4;
    139139    // now really read the fmt chunk
    140     fread(buf, 1, 4, s->fid);
     140    bytes_read += fread(buf, 1, 4, s->fid);
    141141    buf[4] = '\0';
    142142  }
Note: See TracChangeset for help on using the changeset viewer.