ref: a27576bb97a9ff602034d784cb502c4dc065ac36
parent: e087a50b57342ed21a847c3720a735ee25ee027a
author: Paul Brossier <piem@piem.org>
date: Wed Sep 21 11:23:22 EDT 2016
src/io/source_wavread.c: fix bytes_read for JUNK headers
--- a/src/io/source_wavread.c
+++ b/src/io/source_wavread.c
@@ -135,9 +135,9 @@
goto beach;
}
bytes_read += bytes_junk;
- bytes_expected += bytes_junk;
+ bytes_expected += bytes_junk + 4;
// now really read the fmt chunk
- fread(buf, 1, 4, s->fid);
+ bytes_read += fread(buf, 1, 4, s->fid);
buf[4] = '\0';
}