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
c972f91d
Commit
c972f91d
authored
Dec 29, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: prefer av_log to fprintf(stderr)
parent
64292690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ffprobe.c
ffprobe.c
+9
-9
No files found.
ffprobe.c
View file @
c972f91d
...
...
@@ -1354,11 +1354,11 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
AVCodec
*
codec
;
if
(
!
(
codec
=
avcodec_find_decoder
(
stream
->
codec
->
codec_id
)))
{
fprintf
(
stderr
,
"Unsupported codec with id %d for input stream %d
\n
"
,
stream
->
codec
->
codec_id
,
stream
->
index
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Unsupported codec with id %d for input stream %d
\n
"
,
stream
->
codec
->
codec_id
,
stream
->
index
);
}
else
if
(
avcodec_open2
(
stream
->
codec
,
codec
,
NULL
)
<
0
)
{
fprintf
(
stderr
,
"Error while opening codec for input stream %d
\n
"
,
stream
->
index
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while opening codec for input stream %d
\n
"
,
stream
->
index
);
}
}
...
...
@@ -1428,7 +1428,7 @@ static int opt_format(const char *opt, const char *arg)
{
iformat
=
av_find_input_format
(
arg
);
if
(
!
iformat
)
{
fprintf
(
stderr
,
"Unknown input format: %s
\n
"
,
arg
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Unknown input format: %s
\n
"
,
arg
);
return
AVERROR
(
EINVAL
);
}
return
0
;
...
...
@@ -1437,8 +1437,8 @@ static int opt_format(const char *opt, const char *arg)
static
void
opt_input_file
(
void
*
optctx
,
const
char
*
arg
)
{
if
(
input_filename
)
{
fprintf
(
stderr
,
"Argument '%s' provided as input filename, but '%s' was already specified.
\n
"
,
arg
,
input_filename
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Argument '%s' provided as input filename, but '%s' was already specified.
\n
"
,
arg
,
input_filename
);
exit
(
1
);
}
if
(
!
strcmp
(
arg
,
"-"
))
...
...
@@ -1507,8 +1507,8 @@ int main(int argc, char **argv)
if
(
!
input_filename
)
{
show_usage
();
fprintf
(
stderr
,
"You have to specify one input file.
\n
"
);
fprintf
(
stderr
,
"Use -h to get full help or, even better, run 'man %s'.
\n
"
,
program_name
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"You have to specify one input file.
\n
"
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Use -h to get full help or, even better, run 'man %s'.
\n
"
,
program_name
);
exit
(
1
);
}
...
...
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