diff options
author | Zhong Li <zhongli_dev@126.com> | 2019-11-02 23:47:00 +0800 |
---|---|---|
committer | Zhong Li <zhongli_dev@126.com> | 2019-11-04 23:27:35 +0800 |
commit | f52e15df0f6a91428220d7a0852f0d020c2e75a2 (patch) | |
tree | 39ccd8299f6a775f800ba23a04cbc3a05b0c9326 | |
parent | fcbfdeeabe21cb0925313dab6079c50318a7bc71 (diff) | |
download | ffmpeg-f52e15df0f6a91428220d7a0852f0d020c2e75a2.tar.gz |
tools/probetest: replace the deprecated API
Signed-off-by: Zhong Li <zhongli_dev@126.com>
-rw-r--r-- | tools/probetest.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/probetest.c b/tools/probetest.c index 2c6c1de246..cfa309cabd 100644 --- a/tools/probetest.c +++ b/tools/probetest.c @@ -38,9 +38,10 @@ static const char *single_format; static void probe(AVProbeData *pd, int type, int p, int size) { int i = 0; - AVInputFormat *fmt = NULL; + const AVInputFormat *fmt = NULL; + void *fmt_opaque = NULL; - while ((fmt = av_iformat_next(fmt))) { + while ((fmt = av_demuxer_iterate(&fmt_opaque))) { if (fmt->flags & AVFMT_NOFILE) continue; if (fmt->read_probe && @@ -66,8 +67,9 @@ static void print_times(void) { int i = 0; AVInputFormat *fmt = NULL; + void *fmt_opaque = NULL; - while ((fmt = av_iformat_next(fmt))) { + while ((fmt = av_demuxer_iterate(&fmt_opaque))) { if (fmt->flags & AVFMT_NOFILE) continue; if (time_array[i] > 1000000) { |