diff options
| author | Thomas Reufer <thomas@reufer.ch> | 2014-10-01 21:11:19 +0200 |
|---|---|---|
| committer | Thomas Reufer <thomas@reufer.ch> | 2014-10-01 21:11:19 +0200 |
| commit | 41fa08c6ed1b45cac4bbf6f0de042dd059748fd0 (patch) | |
| tree | ee23fd742a4b3342efe76c46212e7e86547c48be | |
| parent | ef6e0314b8c0930e63ef8715c8bbb504e9adae52 (diff) | |
| download | vdr-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-- | HISTORY | 1 | ||||
| -rw-r--r-- | audio.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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 @@ -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 { |
