mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
audioconvert: refuse invalid channels and rate
This commit is contained in:
parent
6341469456
commit
73628c91de
4 changed files with 7 additions and 1 deletions
|
|
@ -727,6 +727,9 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
if (spa_format_audio_raw_parse(format, &info.info.raw) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (info.info.raw.channels == 0 || info.info.raw.rate == 0)
|
||||
return -EINVAL;
|
||||
|
||||
infop = &info;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue