summaryrefslogtreecommitdiff
path: root/tools/probetest.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-08 20:42:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-08 22:33:52 +0100
commit32584667ea51d04650daeb46c83e7838448d0ec9 (patch)
treea40f81a5972ef29e822b48f2fe58027a13ca5370 /tools/probetest.c
parentb8f276e6457413530a38a16a4e79988932d7e661 (diff)
tools/probetest: use named constant for the maximum number of formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/probetest.c')
-rw-r--r--tools/probetest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/probetest.c b/tools/probetest.c
index b13c6f96d7..7f6862a02c 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)