mirror of
https://github.com/taglib/taglib.git
synced 2025-07-17 20:44:20 -04:00
Merge pull request #575 from TsudaKageyu/chunk-offset
Stop calculating the offset in RIFF::File::chunkData().
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user