Revert "Skip both ID3v1 and APE tags when seeking the last MPEG frame."
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 31 Aug 2015 07:20:15 +0000 (16:20 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 31 Aug 2015 07:20:15 +0000 (16:20 +0900)
This reverts commit 6d925da75e7dc84db22f3c7aee290136fa3878ea.

taglib/mpeg/mpegfile.cpp

index 9ae1dffaba4574697cb7d0425530436ebecbdb06..43075cfc091528eebde9ee374ef015ba987ced28 100644 (file)
@@ -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