summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2012-02-12 12:58:22 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2012-02-12 13:08:25 (GMT)
commitcd75e17bd55ccd833e306346f6bcfc51550282de (patch)
treef45091076b7e42d95494ec9a60feebb0ac98399e
parentb4b0fb3824231b9c6f208cb5bed499b8cc3a487e (diff)
Fix mono audio playback.
Follow-up 8adf6524, which was incorrect [cherry-picked from ce8844ab]
-rw-r--r--mythtv/libs/libmyth/audiooutputbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/audiooutputbase.cpp b/mythtv/libs/libmyth/audiooutputbase.cpp
index 0f7c8ca..48e1801 100644
--- a/mythtv/libs/libmyth/audiooutputbase.cpp
+++ b/mythtv/libs/libmyth/audiooutputbase.cpp
@@ -990,7 +990,7 @@ int AudioOutputBase::CopyWithUpmix(char *buffer, int frames, uint &org_waud)
{
AudioOutputUtil::MonoToStereo(WPOS, buffer, bdFrames);
frames -= bdFrames;
- off = bdFrames * source_bytes_per_frame;
+ off = bdFrames * sizeof(float); // 1 channel of floats
org_waud = 0;
}
if (frames > 0)