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
dc4c24a3
Commit
dc4c24a3
authored
Aug 11, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avtools: move some newlines to show_help_options().
Don't require every caller to supply them.
parent
79600a83
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
12 deletions
+13
-12
avconv_opt.c
avconv_opt.c
+7
-7
avplay.c
avplay.c
+2
-2
avprobe.c
avprobe.c
+1
-1
avserver.c
avserver.c
+1
-1
cmdutils.c
cmdutils.c
+2
-1
No files found.
avconv_opt.c
View file @
dc4c24a3
...
...
@@ -1794,24 +1794,24 @@ static int show_help(const char *opt, const char *arg)
int
flags
=
AV_OPT_FLAG_DECODING_PARAM
|
AV_OPT_FLAG_ENCODING_PARAM
;
av_log_set_callback
(
log_callback_help
);
show_usage
();
show_help_options
(
options
,
"Main options:
\n
"
,
show_help_options
(
options
,
"Main options:"
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_SUBTITLE
,
0
);
show_help_options
(
options
,
"
\n
Advanced options:
\n
"
,
show_help_options
(
options
,
"
Advanced options:
"
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_SUBTITLE
,
OPT_EXPERT
);
show_help_options
(
options
,
"
\n
Video options:
\n
"
,
show_help_options
(
options
,
"
Video options:
"
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
,
OPT_VIDEO
);
show_help_options
(
options
,
"
\n
Advanced Video options:
\n
"
,
show_help_options
(
options
,
"
Advanced Video options:
"
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
,
OPT_VIDEO
|
OPT_EXPERT
);
show_help_options
(
options
,
"
\n
Audio options:
\n
"
,
show_help_options
(
options
,
"
Audio options:
"
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
,
OPT_AUDIO
);
show_help_options
(
options
,
"
\n
Advanced Audio options:
\n
"
,
show_help_options
(
options
,
"
Advanced Audio options:
"
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
,
OPT_AUDIO
|
OPT_EXPERT
);
show_help_options
(
options
,
"
\n
Subtitle options:
\n
"
,
show_help_options
(
options
,
"
Subtitle options:
"
,
OPT_SUBTITLE
,
OPT_SUBTITLE
);
printf
(
"
\n
"
);
show_help_children
(
avcodec_get_class
(),
flags
);
...
...
avplay.c
View file @
dc4c24a3
...
...
@@ -2926,9 +2926,9 @@ static int show_help(const char *opt, const char *arg)
{
av_log_set_callback
(
log_callback_help
);
show_usage
();
show_help_options
(
options
,
"Main options:
\n
"
,
show_help_options
(
options
,
"Main options:"
,
OPT_EXPERT
,
0
);
show_help_options
(
options
,
"
\n
Advanced options:
\n
"
,
show_help_options
(
options
,
"
Advanced options:
"
,
OPT_EXPERT
,
OPT_EXPERT
);
printf
(
"
\n
"
);
show_help_children
(
avcodec_get_class
(),
AV_OPT_FLAG_DECODING_PARAM
);
...
...
avprobe.c
View file @
dc4c24a3
...
...
@@ -872,7 +872,7 @@ static int show_help(const char *opt, const char *arg)
{
av_log_set_callback
(
log_callback_help
);
show_usage
();
show_help_options
(
options
,
"Main options:
\n
"
,
0
,
0
);
show_help_options
(
options
,
"Main options:"
,
0
,
0
);
printf
(
"
\n
"
);
show_help_children
(
avformat_get_class
(),
AV_OPT_FLAG_DECODING_PARAM
);
return
0
;
...
...
avserver.c
View file @
dc4c24a3
...
...
@@ -4634,7 +4634,7 @@ static void show_help(void)
printf
(
"usage: avserver [options]
\n
"
"Hyper fast multi format Audio/Video streaming server
\n
"
);
printf
(
"
\n
"
);
show_help_options
(
options
,
"Main options:
\n
"
,
0
,
0
);
show_help_options
(
options
,
"Main options:"
,
0
,
0
);
}
static
const
OptionDef
options
[]
=
{
...
...
cmdutils.c
View file @
dc4c24a3
...
...
@@ -124,7 +124,7 @@ void show_help_options(const OptionDef *options, const char *msg, int mask,
char
buf
[
64
];
if
((
po
->
flags
&
mask
)
==
value
)
{
if
(
first
)
{
printf
(
"%s"
,
msg
);
printf
(
"%s
\n
"
,
msg
);
first
=
0
;
}
av_strlcpy
(
buf
,
po
->
name
,
sizeof
(
buf
));
...
...
@@ -135,6 +135,7 @@ void show_help_options(const OptionDef *options, const char *msg, int mask,
printf
(
"-%-17s %s
\n
"
,
buf
,
po
->
help
);
}
}
printf
(
"
\n
"
);
}
void
show_help_children
(
const
AVClass
*
class
,
int
flags
)
...
...
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