Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ceef1ee7
Commit
ceef1ee7
authored
Jan 06, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: make show_usage() use av_log()
Avoid printing on stdout when show_usage is used in an error message.
parent
44cc1936
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
avconv.c
avconv.c
+3
-3
ffmpeg.c
ffmpeg.c
+3
-3
ffplay.c
ffplay.c
+3
-3
ffprobe.c
ffprobe.c
+3
-3
No files found.
avconv.c
View file @
ceef1ee7
...
...
@@ -4187,9 +4187,9 @@ static int opt_audio_qscale(OptionsContext *o, const char *opt, const char *arg)
static
void
show_usage
(
void
)
{
printf
(
"Hyper fast Audio and Video encoder
\n
"
);
printf
(
"usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...
\n
"
,
program_name
);
printf
(
"
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"Hyper fast Audio and Video encoder
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...
\n
"
,
program_name
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
}
static
int
opt_help
(
const
char
*
opt
,
const
char
*
arg
)
...
...
ffmpeg.c
View file @
ceef1ee7
...
...
@@ -4593,9 +4593,9 @@ static int opt_audio_qscale(OptionsContext *o, const char *opt, const char *arg)
static
void
show_usage
(
void
)
{
printf
(
"Hyper fast Audio and Video encoder
\n
"
);
printf
(
"usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...
\n
"
,
program_name
);
printf
(
"
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"Hyper fast Audio and Video encoder
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...
\n
"
,
program_name
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
}
static
int
opt_help
(
const
char
*
opt
,
const
char
*
arg
)
...
...
ffplay.c
View file @
ceef1ee7
...
...
@@ -3105,9 +3105,9 @@ static const OptionDef options[] = {
static
void
show_usage
(
void
)
{
printf
(
"Simple media player
\n
"
);
printf
(
"usage: %s [options] input_file
\n
"
,
program_name
);
printf
(
"
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"Simple media player
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"usage: %s [options] input_file
\n
"
,
program_name
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
}
static
int
opt_help
(
const
char
*
opt
,
const
char
*
arg
)
...
...
ffprobe.c
View file @
ceef1ee7
...
...
@@ -1439,9 +1439,9 @@ end:
static
void
show_usage
(
void
)
{
printf
(
"Simple multimedia streams analyzer
\n
"
);
printf
(
"usage: %s [OPTIONS] [INPUT_FILE]
\n
"
,
program_name
);
printf
(
"
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"Simple multimedia streams analyzer
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"usage: %s [OPTIONS] [INPUT_FILE]
\n
"
,
program_name
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
}
static
int
opt_format
(
const
char
*
opt
,
const
char
*
arg
)
...
...
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