diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c
index 07eef64ab924072419ad612ab2a731a944ffaf12..dc78c7f0e3b95b9bb1c5f4c4602d2fb7da1d2c5a 100644
--- a/libavcodec/iirfilter.c
+++ b/libavcodec/iirfilter.c
@@ -52,7 +52,7 @@ struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type
                                                     int order, float cutoff_ratio,
                                                     float stopband, float ripple)
 {
-    int i, j, size;
+    int i, j;
     FFIIRFilterCoeffs *c;
     double wa;
     double p[MAXORDER + 1][2];