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 14:58:28 (GMT)
commit8adf652422c59ec7c632219982576829852258f2 (patch)
tree1843049a8ae3cb71f8dfe17af4fb851d027548d0
parent375e78c186472d19610da3572cb1702c48e8f784 (diff)
Fix issue that could occur when playing mono content upmixed to stereo.
Stupid typo
-rw-r--r--mythtv/libs/libmyth/audio/audiooutputbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/audio/audiooutputbase.cpp b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
index 1caeb87..995e43d 100644
--- a/mythtv/libs/libmyth/audio/audiooutputbase.cpp
+++ b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
@@ -1201,7 +1201,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)