From: Michael Niedermayer Date: Fri, 8 Nov 2013 19:42:13 +0000 (+0100) Subject: tools/probetest: use named constant for the maximum number of formats X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=32584667ea51d04650daeb46c83e7838448d0ec9;p=ffmpeg tools/probetest: use named constant for the maximum number of formats Signed-off-by: Michael Niedermayer --- diff --git a/tools/probetest.c b/tools/probetest.c index b13c6f96d75..7f6862a02cb 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)