From dad03478fd68901dba2046eb7ed2dd4c9df21381 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 27 Jun 2023 02:42:15 -0500 Subject: [PATCH] GS:Capture: Fix s16 audio output --- pcsx2/GS/GSCapture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/GSCapture.cpp b/pcsx2/GS/GSCapture.cpp index 1947a03c0c..1374d5d895 100644 --- a/pcsx2/GS/GSCapture.cpp +++ b/pcsx2/GS/GSCapture.cpp @@ -1114,7 +1114,7 @@ bool GSCapture::ProcessAudioPackets(s64 video_pts) else { // Direct copy - optimal. - std::memcpy(s_converted_audio_frame->data[0] + s_audio_frame_pos * s_audio_frame_bps, + std::memcpy(s_converted_audio_frame->data[0] + s_audio_frame_pos * s_audio_frame_bps * AUDIO_CHANNELS, &s_audio_buffer[s_audio_buffer_read_pos * AUDIO_CHANNELS], this_batch * sizeof(s16) * AUDIO_CHANNELS); } } @@ -1434,4 +1434,4 @@ GSCapture::CodecList GSCapture::GetVideoCodecList(const char* container) GSCapture::CodecList GSCapture::GetAudioCodecList(const char* container) { return GetCodecListForContainer(container, AVMEDIA_TYPE_AUDIO); -} \ No newline at end of file +}