From ada7d9a666e3fb3e3484d225d0740f271748fe42 Mon Sep 17 00:00:00 2001 From: Hadrien Blanc Date: Mon, 9 Mar 2026 22:32:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20dimension=20mism?= =?UTF-8?q?atch=20in=20BackgroundCustomProcessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The getImageData call was using PROCESSING_WIDTH for both dimensions instead of PROCESSING_WIDTH and PROCESSING_HEIGHT. This caused the source image data to be 256x256 instead of the expected 256x144, leading to buffer overflow when writing to the segmentation mask and potential visual artifacts in Firefox background effects. --- CHANGELOG.md | 4 ++++ .../livekit/components/blur/BackgroundCustomProcessor.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e2c67f9..101c8d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,10 @@ and this project adheres to - 🐛(backend) refactor lobby throttling to use participant id #1129 - 🩹(backend) ignore non-recording uploads in storage webhook handler #1142 +### Fixed + +- 🐛(frontend) fix dimension mismatch in BackgroundCustomProcessor getImageData #1116 + ## [1.10.0] - 2026-03-05 ### Changed diff --git a/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts b/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts index fdc9fdb2..4b1e1ce1 100644 --- a/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts +++ b/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts @@ -187,7 +187,7 @@ export class BackgroundCustomProcessor implements BackgroundProcessorInterface { 0, 0, PROCESSING_WIDTH, - PROCESSING_WIDTH + PROCESSING_HEIGHT ) }