audioconvert: refuse invalid channels and rate

This commit is contained in:
Wim Taymans 2019-09-03 13:49:38 +02:00
parent 6341469456
commit 73628c91de
4 changed files with 7 additions and 1 deletions

View file

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