OSDN Git Service

Remove redundant use of numchannels since it is 1 for mono.
authorJai Menon <jmenon86@gmail.com>
Sat, 6 Feb 2010 12:48:37 +0000 (12:48 +0000)
committerJai Menon <jmenon86@gmail.com>
Sat, 6 Feb 2010 12:48:37 +0000 (12:48 +0000)
Originally committed as revision 21655 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/alac.c

index b114821..c06b93b 100644 (file)
@@ -647,7 +647,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
             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;