diff --git a/libavutil/sha1.c b/libavutil/sha1.c
index a8e2bd2c7d1e284a532a40e010010666f13e4e1c..6c7eb26af037735d113a1aa8eb989c4a508d65f4 100644
--- a/libavutil/sha1.c
+++ b/libavutil/sha1.c
@@ -29,8 +29,7 @@ typedef struct AVSHA1 {
 
 static void transform(uint32_t state[5], uint8_t buffer[64]){
     uint32_t block[80];
-    unsigned int i;
-    unsigned int a, b, c, d, e;
+    unsigned int i, a, b, c, d, e;
 
     a = state[0];
     b = state[1];