From ad2d0fdf2519a413e8194d8cd641a230c612abc3 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Fri, 15 Oct 2010 14:44:18 +0000 Subject: [PATCH] probetest: replace usage of deprecated first_iformat by av_iformat_next() Originally committed as revision 25490 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tools/probetest.c | 4 ++-- 1 file 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) {