From 41fa08c6ed1b45cac4bbf6f0de042dd059748fd0 Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Wed, 1 Oct 2014 21:11:19 +0200 Subject: =?UTF-8?q?upmix=20mono=20audio=20channels=20to=20stereo=20when=20?= =?UTF-8?q?using=20PCM=C2=A0output=20on=20HDMI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HISTORY | 1 + audio.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/HISTORY b/HISTORY index bc5f14f..9a1363a 100644 --- a/HISTORY +++ b/HISTORY @@ -11,6 +11,7 @@ VDR Plugin 'rpihddevice' Revision History - reworked setup parameter handling - implemented proper command queue for OVG-OSD - fixed: + - upmix mono audio channels to stereo when using PCM output on HDMI - skip non-video packets in StillPicture(), fixes artifacts in PES recordings - skip audio substream header for PES recordings with AC3 audio track - reworked audio decoding loop and set correct dstSize before resampling diff --git a/audio.c b/audio.c index c99c51b..733fd6b 100644 --- a/audio.c +++ b/audio.c @@ -1151,6 +1151,9 @@ void cRpiAudioDecoder::SetCodec(cAudioCodec::eCodec codec, unsigned int &channel m_passthrough = true; outputFormat = codec; } + // if we decode locally, upmix mono channels to 2.0 + else if (channels == 1) + channels = 2; } else { -- cgit v1.2.3