mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-24 02:29:43 +00:00
Fix crash in AudioConvertByteswap
This commit is contained in:
parent
fd6cb4dc86
commit
8315a00a01
@ -238,7 +238,7 @@ static void AudioConvertByteswap(void *dst, const void *src, int num_samples, in
|
||||
case b: { \
|
||||
const Uint##b *tsrc = (const Uint##b *)src; \
|
||||
Uint##b *tdst = (Uint##b *)dst; \
|
||||
for (i = num_samples; i; i++) { \
|
||||
for (i = 0; i < num_samples; i++) { \
|
||||
tdst[i] = SDL_Swap##b(tsrc[i]); \
|
||||
} \
|
||||
break; \
|
||||
|
Loading…
Reference in New Issue
Block a user