diff --git a/libavformat/nut.c b/libavformat/nut.c
index 616eba1eec7da9eeda5c1f619934c8979b100a7c..1605afa9ae10702ee61bbdf0b3ec0175071cc840 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -1413,7 +1413,6 @@ static int nut_read_seek(AVFormatContext *s, int stream_index, int64_t target_ts
 static int nut_read_close(AVFormatContext *s)
 {
     NUTContext *nut = s->priv_data;
-    int i;
 
     av_freep(&nut->stream);