summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2014-10-01 21:11:19 +0200
committerThomas Reufer <thomas@reufer.ch>2014-10-01 21:11:19 +0200
commit41fa08c6ed1b45cac4bbf6f0de042dd059748fd0 (patch)
treeee23fd742a4b3342efe76c46212e7e86547c48be
parentef6e0314b8c0930e63ef8715c8bbb504e9adae52 (diff)
downloadvdr-plugin-rpihddevice-41fa08c6ed1b45cac4bbf6f0de042dd059748fd0.tar.gz
vdr-plugin-rpihddevice-41fa08c6ed1b45cac4bbf6f0de042dd059748fd0.tar.bz2
upmix mono audio channels to stereo when using PCM output on HDMI
-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
{