diff --git a/tools/probetest.c b/tools/probetest.c
index b13c6f96d755da1aa49a85bf4f9964675a8496f1..7f6862a02cbec779ad288b874412066e774f9553 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -24,7 +24,8 @@
 #include "libavcodec/put_bits.h"
 #include "libavutil/lfg.h"
 
-static int score_array[1000]; //this must be larger than the number of formats
+#define MAX_FORMATS 1000 //this must be larger than the number of formats
+static int score_array[MAX_FORMATS];
 static int failures = 0;
 
 static void probe(AVProbeData *pd, int type, int p, int size)