changeset 11080:dfade8d02b92 libavcodec

Remove redundant use of numchannels since it is 1 for mono.
author jai_menon
date Sat, 06 Feb 2010 12:48:37 +0000
parents 5380ea3dcba9
children 0d56d489e695
files alac.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;