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
22381906
Commit
22381906
authored
Mar 23, 2018
by
Josh de Kock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: use new APIs
Signed-off-by:
Josh de Kock
<
josh@itanimul.li
>
parent
65452bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
cmdutils.c
fftools/cmdutils.c
+10
-5
No files found.
fftools/cmdutils.c
View file @
22381906
...
...
@@ -1259,8 +1259,10 @@ static int is_device(const AVClass *avclass)
static
int
show_formats_devices
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
,
int
device_only
,
int
muxdemuxers
)
{
AVInputFormat
*
ifmt
=
NULL
;
AVOutputFormat
*
ofmt
=
NULL
;
void
*
ifmt_opaque
=
NULL
;
const
AVInputFormat
*
ifmt
=
NULL
;
void
*
ofmt_opaque
=
NULL
;
const
AVOutputFormat
*
ofmt
=
NULL
;
const
char
*
last_name
;
int
is_dev
;
...
...
@@ -1276,7 +1278,8 @@ static int show_formats_devices(void *optctx, const char *opt, const char *arg,
const
char
*
long_name
=
NULL
;
if
(
muxdemuxers
!=
SHOW_DEMUXERS
)
{
while
((
ofmt
=
av_oformat_next
(
ofmt
)))
{
ifmt_opaque
=
NULL
;
while
((
ofmt
=
av_muxer_iterate
(
&
ofmt_opaque
)))
{
is_dev
=
is_device
(
ofmt
->
priv_class
);
if
(
!
is_dev
&&
device_only
)
continue
;
...
...
@@ -1289,7 +1292,8 @@ static int show_formats_devices(void *optctx, const char *opt, const char *arg,
}
}
if
(
muxdemuxers
!=
SHOW_MUXERS
)
{
while
((
ifmt
=
av_iformat_next
(
ifmt
)))
{
ofmt_opaque
=
NULL
;
while
((
ifmt
=
av_demuxer_iterate
(
&
ifmt_opaque
)))
{
is_dev
=
is_device
(
ifmt
->
priv_class
);
if
(
!
is_dev
&&
device_only
)
continue
;
...
...
@@ -1629,6 +1633,7 @@ int show_filters(void *optctx, const char *opt, const char *arg)
#if CONFIG_AVFILTER
const
AVFilter
*
filter
=
NULL
;
char
descr
[
64
],
*
descr_cur
;
void
*
opaque
=
NULL
;
int
i
,
j
;
const
AVFilterPad
*
pad
;
...
...
@@ -1640,7 +1645,7 @@ int show_filters(void *optctx, const char *opt, const char *arg)
" V = Video input/output
\n
"
" N = Dynamic number and/or type of input/output
\n
"
" | = Source or sink filter
\n
"
);
while
((
filter
=
av
filter_next
(
filter
)))
{
while
((
filter
=
av
_filter_iterate
(
&
opaque
)))
{
descr_cur
=
descr
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
if
(
i
)
{
...
...
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