summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--audio.c3
2 files changed, 4 insertions, 0 deletions
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
{