|
|
@ -115,7 +115,7 @@ export function QmcMaskDetectMflac(data) {
|
|
|
|
for (let block_idx = 0; block_idx < search_len; block_idx += 128) {
|
|
|
|
for (let block_idx = 0; block_idx < search_len; block_idx += 128) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
mask = new QmcMask(data.slice(block_idx, block_idx + 128));
|
|
|
|
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) {
|
|
|
|
} catch (e) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|