mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
audio: SDL_ResampleCVT() should use memmove instead of memcpy.
This copy can overlap. Fixes Bugzilla #3849.
This commit is contained in:
parent
42fff7ce2b
commit
903ff6414e
@ -732,7 +732,7 @@ SDL_ResampleCVT(SDL_AudioCVT *cvt, const int chans, const SDL_AudioFormat format
|
|||||||
|
|
||||||
SDL_free(padding);
|
SDL_free(padding);
|
||||||
|
|
||||||
SDL_memcpy(cvt->buf, dst, cvt->len_cvt); /* !!! FIXME: remove this if we can get the resampler to work in-place again. */
|
SDL_memmove(cvt->buf, dst, cvt->len_cvt); /* !!! FIXME: remove this if we can get the resampler to work in-place again. */
|
||||||
|
|
||||||
if (cvt->filters[++cvt->filter_index]) {
|
if (cvt->filters[++cvt->filter_index]) {
|
||||||
cvt->filters[cvt->filter_index](cvt, format);
|
cvt->filters[cvt->filter_index](cvt, format);
|
||||||
|
Loading…
Reference in New Issue
Block a user