GS:Capture: Fix s16 audio output

This commit is contained in:
TellowKrinkle 2023-06-27 02:42:15 -05:00 committed by TellowKrinkle
parent 484b75f755
commit dad03478fd
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}