summaryrefslogtreecommitdiffstats
path: root/tools
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
parentb8f276e6457413530a38a16a4e79988932d7e661 (diff)
downloadffmpeg-streaming-32584667ea51d04650daeb46c83e7838448d0ec9.zip
ffmpeg-streaming-32584667ea51d04650daeb46c83e7838448d0ec9.tar.gz
tools/probetest: use named constant for the maximum number of formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools')
-rw-r--r--tools/probetest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/probetest.c b/tools/probetest.c
index b13c6f9..7f6862a 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)
OpenPOWER on IntegriCloud