From b53ae8b6b1694f8bb20b8109f31293a452f5c09f Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Sat, 6 Feb 2010 12:48:37 +0000 Subject: Remove redundant use of numchannels since it is 1 for mono. Originally committed as revision 21655 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alac.c b/libavcodec/alac.c index b1148219b5..c06b93bc94 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -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; -- cgit v1.2.3