diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index bb5b523971311a32635ed2a80cdaae84bcc5b407..ad00fb3e2acc724402259e055cd59ed06b733d97 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -279,7 +279,7 @@ static void fill_audiodata(AudioData *out, uint8_t *in_arg [SWR_CH_MAX]){
 int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count,
                          const uint8_t *in_arg [SWR_CH_MAX], int  in_count){
     AudioData *postin, *midbuf, *preout;
-    int ret, i/*, in_max*/;
+    int ret/*, in_max*/;
     AudioData * in= &s->in;
     AudioData *out= &s->out;
     AudioData preout_tmp, midbuf_tmp;