Fixed SDL_ConvertMonoToStereo_SSE reading out of bounds

main
Brick 2023-04-30 17:55:01 +01:00 committed by Ryan C. Gordon
parent 255c3b7c82
commit 1ee2832326
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ static void SDL_TARGETING("sse") SDL_ConvertMonoToStereo_SSE(float *dst, const f
int i = num_frames; int i = num_frames;
/* convert backwards, since output is growing in-place. */ /* convert backwards, since output is growing in-place. */
src += (num_frames-1) * 1; src += (num_frames-4) * 1;
dst += (num_frames-1) * 2; dst += (num_frames-4) * 2;
LOG_DEBUG_AUDIO_CONVERT("mono", "stereo (using SSE)"); LOG_DEBUG_AUDIO_CONVERT("mono", "stereo (using SSE)");