You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
tools/enum_options: replace the deprecated API
Signed-off-by: Zhong Li <zhongli_dev@126.com>
This commit is contained in:
@@ -88,20 +88,22 @@ static void show_opts(const AVClass *class)
|
|||||||
|
|
||||||
static void show_format_opts(void)
|
static void show_format_opts(void)
|
||||||
{
|
{
|
||||||
AVInputFormat *iformat = NULL;
|
const AVInputFormat *iformat = NULL;
|
||||||
AVOutputFormat *oformat = NULL;
|
const AVOutputFormat *oformat = NULL;
|
||||||
|
void *iformat_opaque = NULL;
|
||||||
|
void *oformat_opaque = NULL;
|
||||||
|
|
||||||
printf("@section Generic format AVOptions\n");
|
printf("@section Generic format AVOptions\n");
|
||||||
show_opts(avformat_get_class());
|
show_opts(avformat_get_class());
|
||||||
|
|
||||||
printf("@section Format-specific AVOptions\n");
|
printf("@section Format-specific AVOptions\n");
|
||||||
while ((iformat = av_iformat_next(iformat))) {
|
while ((iformat = av_demuxer_iterate(&iformat_opaque))) {
|
||||||
if (!iformat->priv_class)
|
if (!iformat->priv_class)
|
||||||
continue;
|
continue;
|
||||||
printf("@subsection %s AVOptions\n", iformat->priv_class->class_name);
|
printf("@subsection %s AVOptions\n", iformat->priv_class->class_name);
|
||||||
show_opts(iformat->priv_class);
|
show_opts(iformat->priv_class);
|
||||||
}
|
}
|
||||||
while ((oformat = av_oformat_next(oformat))) {
|
while ((oformat = av_muxer_iterate(&oformat_opaque))) {
|
||||||
if (!oformat->priv_class)
|
if (!oformat->priv_class)
|
||||||
continue;
|
continue;
|
||||||
printf("@subsection %s AVOptions\n", oformat->priv_class->class_name);
|
printf("@subsection %s AVOptions\n", oformat->priv_class->class_name);
|
||||||
|
Reference in New Issue
Block a user