mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 00:58:12 -04:00
Skip both ID3v1 and APE tags when seeking the last MPEG frame.
This commit is contained in:
parent
9f697fce8e
commit
94ff9124c7
@ -469,7 +469,16 @@ long MPEG::File::firstFrameOffset()
|
||||
|
||||
long MPEG::File::lastFrameOffset()
|
||||
{
|
||||
return previousFrameOffset(hasID3v1Tag() ? d->ID3v1Location - 1 : length());
|
||||
long position;
|
||||
|
||||
if(hasAPETag())
|
||||
position = d->APELocation - 1;
|
||||
else if(hasID3v1Tag())
|
||||
position = d->ID3v1Location - 1;
|
||||
else
|
||||
position = length();
|
||||
|
||||
return previousFrameOffset(position);
|
||||
}
|
||||
|
||||
bool MPEG::File::hasID3v1Tag() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user