Skip to content

Commit cd75e17

Browse files
committed
Fix mono audio playback.
Follow-up 8adf652, which was incorrect [cherry-picked from ce8844a]
1 parent b4b0fb3 commit cd75e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmyth/audiooutputbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ int AudioOutputBase::CopyWithUpmix(char *buffer, int frames, uint &org_waud)
990990
{
991991
AudioOutputUtil::MonoToStereo(WPOS, buffer, bdFrames);
992992
frames -= bdFrames;
993-
off = bdFrames * source_bytes_per_frame;
993+
off = bdFrames * sizeof(float); // 1 channel of floats
994994
org_waud = 0;
995995
}
996996
if (frames > 0)

0 commit comments

Comments
 (0)