]> granicus.if.org Git - taglib/commitdiff
Initialize all the private data members.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 7 Jan 2016 16:57:18 +0000 (01:57 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 7 Jan 2016 16:57:18 +0000 (01:57 +0900)
taglib/mpeg/mpegheader.cpp

index 71e006633cfd9dcc05cd7f6bfb0b5b3887f9f35b..7f82a607cfa184497f2a0d8e87f7da14f031dfde 100644 (file)
@@ -42,6 +42,7 @@ public:
     version(Version1),
     layer(0),
     protectionEnabled(false),
+    bitrate(0),
     sampleRate(0),
     isPadded(false),
     channelMode(Stereo),
@@ -308,7 +309,7 @@ void MPEG::Header::parse(File *file, long offset, bool checkLength)
     bool nextFrameFound = false;
 
     file->seek(offset + d->frameLength);
-    const ByteVector nextSynch = file->readBlock(4);
+    const ByteVector nextSynch = file->readBlock(16);
 
     for(int i = 0; i < static_cast<int>(nextSynch.size()) - 1; ++i) {
       if(firstSyncByte(nextSynch[i]) && secondSynchByte(nextSynch[i + 1])) {