diff options
author | Zhong Li <zhongli_dev@126.com> | 2019-11-02 23:47:01 +0800 |
---|---|---|
committer | Zhong Li <zhongli_dev@126.com> | 2019-11-04 23:27:50 +0800 |
commit | 8ff432eb447ec0eca9954829aa58b611eafd835d (patch) | |
tree | d924d7c8ab968698e8d9f86b592249c327e1be30 /tools/enum_options.c | |
parent | f52e15df0f6a91428220d7a0852f0d020c2e75a2 (diff) | |
download | ffmpeg-8ff432eb447ec0eca9954829aa58b611eafd835d.tar.gz |
tools/enum_options: replace the deprecated API
Signed-off-by: Zhong Li <zhongli_dev@126.com>
Diffstat (limited to 'tools/enum_options.c')
-rw-r--r-- | tools/enum_options.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/enum_options.c b/tools/enum_options.c index 77e1f9f799..28631d1a6b 100644 --- a/tools/enum_options.c +++ b/tools/enum_options.c @@ -88,20 +88,22 @@ static void show_opts(const AVClass *class) static void show_format_opts(void) { - AVInputFormat *iformat = NULL; - AVOutputFormat *oformat = NULL; + const AVInputFormat *iformat = NULL; + const AVOutputFormat *oformat = NULL; + void *iformat_opaque = NULL; + void *oformat_opaque = NULL; printf("@section Generic format AVOptions\n"); show_opts(avformat_get_class()); printf("@section Format-specific AVOptions\n"); - while ((iformat = av_iformat_next(iformat))) { + while ((iformat = av_demuxer_iterate(&iformat_opaque))) { if (!iformat->priv_class) continue; printf("@subsection %s AVOptions\n", iformat->priv_class->class_name); show_opts(iformat->priv_class); } - while ((oformat = av_oformat_next(oformat))) { + while ((oformat = av_muxer_iterate(&oformat_opaque))) { if (!oformat->priv_class) continue; printf("@subsection %s AVOptions\n", oformat->priv_class->class_name); |