From bc9f9791eeb1eb2fed27d837b0787d9f91dc15dc Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Fri, 21 Apr 2017 08:31:41 +0200 Subject: always resample audio with less than 2 and more than 6 channels --- HISTORY | 1 + setup.c | 3 +++ 2 files changed, 4 insertions(+) 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: -- cgit v1.2.3