audioconvert: fix tmp_datas[1] when scratch ports grow

This commit is contained in:
zuozhiwei 2026-04-20 10:24:42 +08:00
parent cee1bdfb5a
commit c3d16a39f5

View file

@ -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;
}