Fix Decrypt Mflac Error

This commit is contained in:
MengYX 2020-02-12 23:04:48 +08:00
parent ce251e3c9e
commit 179f72687a
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

View File

@ -115,7 +115,7 @@ export function QmcMaskDetectMflac(data) {
for (let block_idx = 0; block_idx < search_len; block_idx += 128) {
try {
mask = new QmcMask(data.slice(block_idx, block_idx + 128));
if (!IsBytesEqual(FLAC_HEADER, mask.Decrypt(data.slice(0, FLAC_HEADER.length)))) break;
if (IsBytesEqual(FLAC_HEADER, mask.Decrypt(data.slice(0, FLAC_HEADER.length)))) break;
} catch (e) {
}
}