[FFmpeg-cvslog] tools/probetest: use named constant for the maximum number of formats

Michael Niedermayer git at videolan.org
Fri Nov 8 22:40:24 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov  8 20:42:13 2013 +0100| [32584667ea51d04650daeb46c83e7838448d0ec9] | committer: Michael Niedermayer

tools/probetest: use named constant for the maximum number of formats

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=32584667ea51d04650daeb46c83e7838448d0ec9
---

 tools/probetest.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list