mirror of
https://github.com/taglib/taglib.git
synced 2025-07-20 05:54:20 -04:00
Fix TTA audio properties reading.
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@740388 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -273,9 +273,16 @@ void TrueAudio::File::read(bool readProperties, Properties::ReadStyle /* propert
|
||||
// Look for TrueAudio metadata
|
||||
|
||||
if(readProperties) {
|
||||
seek(d->ID3v2Location + d->ID3v2OriginalSize);
|
||||
d->properties = new Properties(readBlock(TrueAudio::HeaderSize),
|
||||
length() - d->ID3v2OriginalSize);
|
||||
if(d->ID3v2Location >= 0) {
|
||||
seek(d->ID3v2Location + d->ID3v2OriginalSize);
|
||||
d->properties = new Properties(readBlock(TrueAudio::HeaderSize),
|
||||
length() - d->ID3v2OriginalSize);
|
||||
}
|
||||
else {
|
||||
seek(0);
|
||||
d->properties = new Properties(readBlock(TrueAudio::HeaderSize),
|
||||
length());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ int TrueAudio::Properties::ttaVersion() const
|
||||
|
||||
void TrueAudio::Properties::read()
|
||||
{
|
||||
if(!d->data.startsWith("TrueAudio"))
|
||||
if(!d->data.startsWith("TTA"))
|
||||
return;
|
||||
|
||||
int pos = 3;
|
||||
|
Reference in New Issue
Block a user