From f6d2916550e6bdea0f26f33e7d75f2948e5364ee Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Sat, 6 Feb 2010 12:52:22 +0000 Subject: [PATCH] Avoid using an intermediate variable. Originally committed as revision 21656 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/alac.c b/libavcodec/alac.c index c06b93bc94..959bc6208a 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -646,8 +646,7 @@ static int alac_decode_frame(AVCodecContext *avctx, } else { int i; for (i = 0; i < outputsamples; i++) { - int16_t sample = alac->outputsamples_buffer[0][i]; - ((int16_t*)outbuffer)[i] = sample; + ((int16_t*)outbuffer)[i] = alac->outputsamples_buffer[0][i]; } } break;