diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 34692bae79d093233b7045913a9958c31c204a25..266f17cac75dc936f0dbcc2d6f0173470d0cfd0c 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -489,7 +489,6 @@ static int mp3_seek(AVFormatContext *s, int stream_index, int64_t timestamp,
     AVStream *st = s->streams[0];
     int64_t ret  = av_index_search_timestamp(st, timestamp, flags);
     int64_t best_pos;
-    int i;
 
     if (mp3->usetoc == 2)
         return -1; // generic index code