mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
relax test for files with garbage at end
This commit is contained in:
parent
f43b438d63
commit
8f13d86377
1 changed files with 1 additions and 1 deletions
2
wav.hh
2
wav.hh
|
|
@ -74,7 +74,7 @@ public:
|
|||
if (cmp4("data", Subchunk2ID))
|
||||
return;
|
||||
int Subchunk2Size = readLE(4);
|
||||
if (36 + Subchunk2Size != ChunkSize)
|
||||
if (36 + Subchunk2Size > ChunkSize)
|
||||
return;
|
||||
frames_ = Subchunk2Size / (bytes * channels_);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue