mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Revert some unnecessary changes.
This commit is contained in:
parent
5b7ee5bc1a
commit
7a5fb7d672
@ -306,19 +306,10 @@ void MPEG::Header::parse(File *file, long offset, bool checkLength)
|
||||
|
||||
if(checkLength) {
|
||||
|
||||
bool nextFrameFound = false;
|
||||
|
||||
file->seek(offset + d->frameLength);
|
||||
const ByteVector nextSynch = file->readBlock(16);
|
||||
const ByteVector nextSynch = file->readBlock(2);
|
||||
|
||||
for(int i = 0; i < static_cast<int>(nextSynch.size()) - 1; ++i) {
|
||||
if(firstSyncByte(nextSynch[i]) && secondSynchByte(nextSynch[i + 1])) {
|
||||
nextFrameFound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!nextFrameFound) {
|
||||
if(nextSynch.size() < 2 || !firstSyncByte(nextSynch[0]) || !secondSynchByte(nextSynch[1])) {
|
||||
debug("MPEG::Header::parse() -- Calculated frame length did not match the actual length.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user