diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index b30400b680327a02fdcccfdd7e98ae08ac64892e..c177f60ca95d92faf2fffdf3a18d9454c898a0cd 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -130,7 +130,6 @@ static void nelly_decode_block(NellyMoserDecodeContext *s,
 
 static av_cold int decode_init(AVCodecContext * avctx) {
     NellyMoserDecodeContext *s = avctx->priv_data;
-    int i;
 
     s->avctx = avctx;
     av_init_random(0, &s->random_state);