Skip to content

Commit

Permalink
audio: Fixed incorrect pointer in SDL_ResampleCVT_si16_c2().
Browse files Browse the repository at this point in the history
Forgot to update this when we changed this to process in-place. Whoops!
  • Loading branch information
icculus committed Jan 23, 2017
1 parent ecdc6c1 commit 8ce6ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/SDL_audiocvt.c
Expand Up @@ -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);
Expand Down

0 comments on commit 8ce6ddf

Please sign in to comment.