From: Jai Menon Date: Sat, 6 Feb 2010 12:48:37 +0000 (+0000) Subject: Remove redundant use of numchannels since it is 1 for mono. X-Git-Tag: v0.6~1444 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b53ae8b6b1694f8bb20b8109f31293a452f5c09f;p=platform%2Fupstream%2Flibav.git Remove redundant use of numchannels since it is 1 for mono. Originally committed as revision 21655 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/alac.c b/libavcodec/alac.c index b114821..c06b93b 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;