From c3d16a39f5f618265bd6a22de8d42f907732022c Mon Sep 17 00:00:00 2001 From: zuozhiwei Date: Mon, 20 Apr 2026 10:24:42 +0800 Subject: [PATCH] audioconvert: fix tmp_datas[1] when scratch ports grow --- spa/plugins/audioconvert/audioconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index d1b5cd683..9df4537d6 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1325,7 +1325,7 @@ static int ensure_tmp(struct impl *this) return -ENOMEM; } this->tmp_datas[0][i] = SPA_PTR_ALIGN(this->tmp[0][i], MAX_ALIGN, void); - this->tmp_datas[0][i] = SPA_PTR_ALIGN(this->tmp[0][i], MAX_ALIGN, void); + this->tmp_datas[1][i] = SPA_PTR_ALIGN(this->tmp[1][i], MAX_ALIGN, void); } this->scratch_ports = maxports; }