mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fixed SDL_ConvertMonoToStereo_SSE reading out of bounds
This commit is contained in:
@@ -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)");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user