mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Stop calculating the offset in RIFF::File::chunkData().
This commit is contained in:
parent
4129b919c1
commit
2337fbcfc6
@ -127,15 +127,7 @@ ByteVector RIFF::File::chunkData(uint i)
|
||||
if(i >= chunkCount())
|
||||
return ByteVector::null;
|
||||
|
||||
// Offset for the first subchunk's data
|
||||
|
||||
long begin = 12 + 8;
|
||||
|
||||
for(uint it = 0; it < i; it++)
|
||||
begin += 8 + d->chunks[it].size + d->chunks[it].padding;
|
||||
|
||||
seek(begin);
|
||||
|
||||
seek(d->chunks[i].offset);
|
||||
return readBlock(d->chunks[i].size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user