summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/probetest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/probetest.c b/tools/probetest.c
index d1d77b37a5..b4bb5aea9e 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -30,9 +30,9 @@ static int failures = 0;
static void probe(AVProbeData *pd, int type, int p, int size)
{
int i = 0;
- AVInputFormat *fmt;
+ AVInputFormat *fmt = NULL;
- for (fmt = first_iformat; fmt != NULL; fmt = fmt->next) {
+ while ((fmt = av_iformat_next(fmt))) {
if (fmt->flags & AVFMT_NOFILE)
continue;
if (fmt->read_probe) {