summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 2f84219..1ad488b 100644
--- a/setup.c
+++ b/setup.c
@@ -235,6 +235,9 @@ bool cRpiSetup::IsAudioFormatSupported(cAudioCodec::eCodec codec,
if (codec == cAudioCodec::eMPG || codec == cAudioCodec::eAAC)
return false;
+ if (channels < 2 || channels > 6)
+ return false;
+
switch (GetAudioFormat())
{
case cAudioFormat::ePassThrough: