Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Oct 29, 2023
1 parent 4803271 commit 794d6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/utils/riff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ namespace riff {
file.write((char*)&desc.hdr.size, sizeof(desc.hdr.size));
file.seekp(pos);

// If parent chunk, increment its size by the size of the subchunk (adding the size of its header)
// If parent chunk, increment its size by the size of the sub-chunk plus the size of its header)
if (!chunks.empty()) {
chunks.top().hdr.size += desc.hdr.size + 8;
chunks.top().hdr.size += desc.hdr.size + sizeof(ChunkHeader);
}
}

Expand Down

0 comments on commit 794d6ff

Please sign in to comment.