mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-25 18:10:07 +08:00
fix
This commit is contained in:
parent
01d5663bc8
commit
3f0730ed4f
@ -161,7 +161,7 @@ class JpegParser implements ImageParser {
|
||||
if (offset > BUFFER_SIZE) {
|
||||
const KEEP_BYTES = 20; // 保留足够数据以处理跨块边界的情况
|
||||
if (offset > KEEP_BYTES) {
|
||||
buffer = buffer.slice(offset - KEEP_BYTES);
|
||||
buffer = buffer.subarray(offset - KEEP_BYTES);
|
||||
offset = KEEP_BYTES;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user