]> granicus.if.org Git - taglib/commitdiff
Fix a silly mistake.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 25 Dec 2015 07:52:26 +0000 (16:52 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 25 Dec 2015 07:52:26 +0000 (16:52 +0900)
taglib/mpeg/mpegheader.cpp

index 8732961458c2d484e877b8b2aba74ff81d0e2c85..71e006633cfd9dcc05cd7f6bfb0b5b3887f9f35b 100644 (file)
@@ -311,7 +311,7 @@ void MPEG::Header::parse(File *file, long offset, bool checkLength)
     const ByteVector nextSynch = file->readBlock(4);
 
     for(int i = 0; i < static_cast<int>(nextSynch.size()) - 1; ++i) {
-      if(firstSyncByte(nextSynch[0]) && secondSynchByte(nextSynch[1])) {
+      if(firstSyncByte(nextSynch[i]) && secondSynchByte(nextSynch[i + 1])) {
         nextFrameFound = true;
         break;
       }