# HG changeset patch # User jai_menon # Date 1265460517 0 # Node ID dfade8d02b928f104c5126a893d07163c4dd367c # Parent 5380ea3dcba9e5c464bc1ec26491860f16293d61 Remove redundant use of numchannels since it is 1 for mono. diff -r 5380ea3dcba9 -r dfade8d02b92 alac.c --- a/alac.c Sat Feb 06 12:38:42 2010 +0000 +++ b/alac.c Sat Feb 06 12:48:37 2010 +0000 @@ -647,7 +647,7 @@ int i; for (i = 0; i < outputsamples; i++) { int16_t sample = alac->outputsamples_buffer[0][i]; - ((int16_t*)outbuffer)[i * alac->numchannels] = sample; + ((int16_t*)outbuffer)[i] = sample; } } break;