tools/probetest: use named constant for the maximum number of formats
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 8 Nov 2013 19:42:13 +0000 (20:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 8 Nov 2013 21:33:52 +0000 (22:33 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/probetest.c

index b13c6f9..7f6862a 100644 (file)
@@ -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)