forked from um/web
Fix Decrypt Mflac Error
This commit is contained in:
parent
ce251e3c9e
commit
179f72687a
@ -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) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user