summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2017-04-21 06:31:41 (GMT)
committerThomas Reufer <thomas@reufer.ch>2017-04-21 06:31:41 (GMT)
commitbc9f9791eeb1eb2fed27d837b0787d9f91dc15dc (patch)
tree34955bc827f91c891841e9b1ca505731a985ac6a
parent0b676b7aaa659443c52f4d2f249946c834683fd6 (diff)
downloadvdr-plugin-rpihddevice-bc9f9791eeb1eb2fed27d837b0787d9f91dc15dc.tar.gz
vdr-plugin-rpihddevice-bc9f9791eeb1eb2fed27d837b0787d9f91dc15dc.tar.bz2
always resample audio with less than 2 and more than 6 channels
-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: