summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2012-02-11 14:58:28 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2012-02-11 23:48:14 (GMT)
commitb4b0fb3824231b9c6f208cb5bed499b8cc3a487e (patch)
tree0be679e2486659b842e1baf38999b17ad440ea2b
parent892628e965229e679ad568d5e50220d39f7df103 (diff)
Fix issue that could occur when playing mono content upmixed to stereo.
Stupid typo [cherry-picked from 8adf652422c59ec7c632219982576829852258f2]
-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 8cb4248..0f7c8ca 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 * bpf;
+ off = bdFrames * source_bytes_per_frame;
org_waud = 0;
}
if (frames > 0)