summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/alac.c3
1 files changed, 1 insertions, 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;