Avoid using an intermediate variable.
authorJai Menon <jmenon86@gmail.com>
Sat, 6 Feb 2010 12:52:22 +0000 (12:52 +0000)
committerJai Menon <jmenon86@gmail.com>
Sat, 6 Feb 2010 12:52:22 +0000 (12:52 +0000)
Originally committed as revision 21656 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/alac.c

index c06b93b..959bc62 100644 (file)
@@ -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;