summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--setup.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index e4d3739..4438b9c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6,6 +6,7 @@ VDR Plugin 'rpihddevice' Revision History
- make use of advanced deinterlacer configurable
- add debug option to log number of executed OpenVG commands and flushes
- fixed:
+ - always resample audio with less than 2 and more than 6 channels
- fixed compilation with GCC-6
- implement proper handling of display and pixel aspect ratios
- fixed vertical text position
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: