]> granicus.if.org Git - taglib/commitdiff
Amend a vague comment and debug message.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 22 Dec 2015 06:18:53 +0000 (15:18 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 22 Dec 2015 06:18:53 +0000 (15:18 +0900)
taglib/mpeg/mpegheader.cpp

index 73d2196b946626f410e5bf74dd6e22ad495cbb7e..4e4e4e37ad2a51e090c3fde1bca0cc8b8336d76a 100644 (file)
@@ -299,13 +299,13 @@ void MPEG::Header::parse(File *file, long offset)
     d->frameLength += paddingSize[layerIndex];
 
   // Check if the frame length has been calculated correctly, or the next frame
-  // header is near the end of this frame.
+  // synch bytes are right next to the end of this frame.
 
   file->seek(offset + d->frameLength);
   const ByteVector nextSynch = file->readBlock(2);
 
   if(nextSynch.size() < 2 || !firstSyncByte(nextSynch[0]) || !secondSynchByte(nextSynch[1])) {
-    debug("MPEG::Header::parse() -- Frame length seems to be wrong.");
+    debug("MPEG::Header::parse() -- Calculated frame length did not match the actual length.");
     return;
   }