fix: update header size for Wave 64 format

This commit is contained in:
Marcus Holland-Moritz 2023-11-22 12:25:37 +01:00
parent cebfea15c1
commit a284aecc35

View File

@ -316,12 +316,13 @@ class iff_parser final {
c.reset(); c.reset();
return c; return c;
} }
pos_ += c->header.size;
c->header.size -= sizeof(ChunkHeaderType);
} else { } else {
pos_ += sizeof(ChunkHeaderType); pos_ += sizeof(ChunkHeaderType);
pos_ += c->header.size;
} }
pos_ += c->header.size;
if (pos_ > data_.size()) { if (pos_ > data_.size()) {
LOG_WARN << "[" << name_ << "] " << path_ LOG_WARN << "[" << name_ << "] " << path_
<< ": unexpected end of file (pos=" << pos_ << ": unexpected end of file (pos=" << pos_