diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 0aeb4109b771e01b16d2cc1e183d569f11c1bd27..74da253cabe21a7b96a0ac6d96a956e7faeafc82 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -130,7 +130,6 @@ static void bastardized_rice_decompress(ALACContext *alac,
 
         /* special case: there may be compressed blocks of 0 */
         if ((history < 128) && (output_count+1 < output_size)) {
-            int k;
             unsigned int block_size;
 
             k = 7 - av_log2(history) + ((history + 16) >> 6 /* / 64 */);