Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8ff432eb
Commit
8ff432eb
authored
Nov 02, 2019
by
Zhong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/enum_options: replace the deprecated API
Signed-off-by:
Zhong Li
<
zhongli_dev@126.com
>
parent
f52e15df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
enum_options.c
tools/enum_options.c
+6
-4
No files found.
tools/enum_options.c
View file @
8ff432eb
...
@@ -88,20 +88,22 @@ static void show_opts(const AVClass *class)
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment