mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-05 06:46:28 -04:00
filter-graph: reject too many impulse response files
This commit is contained in:
parent
62dbd49f5a
commit
e423844f9b
1 changed files with 4 additions and 0 deletions
|
|
@ -1339,6 +1339,10 @@ static void * convolver2_instantiate(const struct spa_fga_plugin *plugin, const
|
|||
}
|
||||
spa_json_enter(&it[0], &it[1]);
|
||||
while (spa_json_enter_object(&it[1], &it[2]) > 0) {
|
||||
if (n_ir >= (int)SPA_N_ELEMENTS(ir)) {
|
||||
spa_log_error(pl->log, "convolver2:too many impulses (%d)", n_ir);
|
||||
goto error;
|
||||
}
|
||||
ir[n_ir] = IMPULSE_INIT(n_ir);
|
||||
if ((res = convolver_read_impulse(pl, &it[2], SampleRate, &ir[n_ir])) < 0)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue