Fixed typo converting 4 channel audio to 2 channel
authorSam Lantinga <slouken@libsdl.org>
Fri, 20 Oct 2017 16:53:42 -0700
changeset 11642e081e63addd3
parent 11641 e4ffc5a1b7ea
child 11643 273acc67dbfa
Fixed typo converting 4 channel audio to 2 channel
src/audio/SDL_audiocvt.c
     1.1 --- a/src/audio/SDL_audiocvt.c	Fri Oct 20 14:51:22 2017 -0700
     1.2 +++ b/src/audio/SDL_audiocvt.c	Fri Oct 20 16:53:42 2017 -0700
     1.3 @@ -139,7 +139,7 @@
     1.4          dst[1] = (src[1] + src[3]) * 0.5f; /* right */
     1.5      }
     1.6  
     1.7 -    cvt->len_cvt /= 3;
     1.8 +    cvt->len_cvt /= 2;
     1.9      if (cvt->filters[++cvt->filter_index]) {
    1.10          cvt->filters[cvt->filter_index] (cvt, format);
    1.11      }