mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Revert "Skip both ID3v1 and APE tags when seeking the last MPEG frame."
This reverts commit 6d925da75e
.
This commit is contained in:
@ -469,16 +469,7 @@ long MPEG::File::firstFrameOffset()
|
||||
|
||||
long MPEG::File::lastFrameOffset()
|
||||
{
|
||||
long position;
|
||||
|
||||
if(hasAPETag())
|
||||
position = d->APELocation - 1;
|
||||
else if(hasID3v1Tag())
|
||||
position = d->ID3v1Location - 1;
|
||||
else
|
||||
position = length();
|
||||
|
||||
return previousFrameOffset(position);
|
||||
return previousFrameOffset(hasID3v1Tag() ? d->ID3v1Location - 1 : length());
|
||||
}
|
||||
|
||||
bool MPEG::File::hasID3v1Tag() const
|
||||
|
Reference in New Issue
Block a user