From f29e05a3a90e16ff1366bb1fc9384f4b1ac8d27e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Feb 2026 18:32:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(video-edit):=20=E8=AF=BB=E5=8F=96ffmpeg?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=97=B6=E6=B7=B1=E6=8B=B7=E8=B4=9D=E9=81=BF?= =?UTF-8?q?=E5=85=8Ddetached=20ArrayBuffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/public/js/video.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/static/public/js/video.js b/app/static/public/js/video.js index f478add..664a526 100644 --- a/app/static/public/js/video.js +++ b/app/static/public/js/video.js @@ -703,11 +703,13 @@ async function ffmpegReadFile(ff, name) { if (typeof ff.readFile === 'function') { const out = await ff.readFile(name); - return out instanceof Uint8Array ? out : new Uint8Array(out); + const view = out instanceof Uint8Array ? out : new Uint8Array(out); + return new Uint8Array(view); } if (ff.FS) { const out = ff.FS('readFile', name); - return out instanceof Uint8Array ? out : new Uint8Array(out); + const view = out instanceof Uint8Array ? out : new Uint8Array(out); + return new Uint8Array(view); } throw new Error('ffmpeg_readfile_unsupported'); }