diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 04ceab52286766f7f2b811a5186a380ba5d209c6..b9cc9cefa3b543551c513817921921b68109291b 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4702,7 +4702,6 @@ av_cold void ff_h264_free_context(H264Context *h)
 static av_cold int h264_decode_end(AVCodecContext *avctx)
 {
     H264Context *h    = avctx->priv_data;
-    int i;
 
     ff_h264_free_context(h);