From 8ce6ddf125e0eacfb1014e69370f9271c022a19d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 23 Jan 2017 16:42:47 -0500 Subject: [PATCH] audio: Fixed incorrect pointer in SDL_ResampleCVT_si16_c2(). Forgot to update this when we changed this to process in-place. Whoops! --- src/audio/SDL_audiocvt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 7a915a6b52c57..1787917828aa2 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -371,8 +371,8 @@ SDL_ResampleCVT_si16_c2(SDL_AudioCVT *cvt, SDL_AudioFormat format) { const Sint16 *src = (const Sint16 *) cvt->buf; const int srclen = cvt->len_cvt; - Sint16 *dst = (Sint16 *) (cvt->buf + srclen); - const int dstlen = (cvt->len * cvt->len_mult) - srclen; + Sint16 *dst = (Sint16 *) cvt->buf; + const int dstlen = (cvt->len * cvt->len_mult); Sint16 state[2] = { src[0], src[1] }; SDL_assert(format == AUDIO_S16SYS);