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
68f8db61
Commit
68f8db61
authored
Dec 01, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: Allow specifying multiple stream entries to be shown
parent
e90137c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
avprobe.c
avprobe.c
+16
-2
No files found.
avprobe.c
View file @
68f8db61
...
...
@@ -1033,6 +1033,8 @@ static int opt_show_format_entry(void *optctx, const char *opt, const char *arg)
static
int
opt_show_stream_entry
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
const
char
*
p
=
arg
;
do_show_streams
=
1
;
nb_stream_entries_to_show
++
;
octx
.
print_header
=
NULL
;
...
...
@@ -1044,7 +1046,19 @@ static int opt_show_stream_entry(void *optctx, const char *opt, const char *arg)
octx
.
print_integer
=
show_stream_entry_integer
;
octx
.
print_string
=
show_stream_entry_string
;
av_dict_set
(
&
stream_entries_to_show
,
arg
,
""
,
0
);
while
(
*
p
)
{
char
*
val
=
av_get_token
(
&
p
,
","
);
if
(
!
val
)
return
AVERROR
(
ENOMEM
);
av_dict_set
(
&
stream_entries_to_show
,
val
,
""
,
0
);
av_free
(
val
);
if
(
*
p
)
p
++
;
}
return
0
;
}
...
...
@@ -1099,7 +1113,7 @@ static const OptionDef real_options[] = {
{
"show_packets"
,
OPT_BOOL
,
{
&
do_show_packets
},
"show packets info"
},
{
"show_streams"
,
OPT_BOOL
,
{
&
do_show_streams
},
"show streams info"
},
{
"show_stream_entry"
,
HAS_ARG
,
{.
func_arg
=
opt_show_stream_entry
},
"show a particular entry from all streams"
,
"entry"
},
"show a particular entry from all streams
(comma separated)
"
,
"entry"
},
{
"default"
,
HAS_ARG
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_EXPERT
,
{.
func_arg
=
opt_default
},
"generic catch all option"
,
""
},
{
NULL
,
},
...
...
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