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
841bf0ef
Commit
841bf0ef
authored
Nov 01, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: allow specifying the file for -report
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7139f0e6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
cmdutils.c
cmdutils.c
+11
-0
cmdutils.h
cmdutils.h
+2
-0
cmdutils_common_opts.h
cmdutils_common_opts.h
+1
-0
No files found.
cmdutils.c
View file @
841bf0ef
...
...
@@ -528,6 +528,17 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg)
return
0
;
}
int
opt_report_file
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
report_file
=
fopen
(
arg
,
"w"
);
if
(
!
report_file
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Failed to open report
\"
%s
\"
: %s
\n
"
,
arg
,
strerror
(
errno
));
return
AVERROR
(
errno
);
}
return
0
;
}
int
opt_report
(
const
char
*
opt
)
{
char
filename
[
64
];
...
...
cmdutils.h
View file @
841bf0ef
...
...
@@ -84,6 +84,8 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg);
int
opt_report
(
const
char
*
opt
);
int
opt_report_file
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
);
int
opt_max_alloc
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
);
int
opt_cpuflags
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
);
...
...
cmdutils_common_opts.h
View file @
841bf0ef
...
...
@@ -19,5 +19,6 @@
{
"debug"
,
HAS_ARG
,
{.
func_arg
=
opt_codec_debug
},
"set debug flags"
,
"flags"
},
{
"fdebug"
,
HAS_ARG
,
{.
func_arg
=
opt_codec_debug
},
"set debug flags"
,
"flags"
},
{
"report"
,
0
,
{(
void
*
)
opt_report
},
"generate a report"
},
{
"report_file"
,
HAS_ARG
,
{.
func_arg
=
opt_report_file
},
"filename for storing the report"
},
{
"max_alloc"
,
HAS_ARG
,
{.
func_arg
=
opt_max_alloc
},
"set maximum size of a single allocated block"
,
"bytes"
},
{
"cpuflags"
,
HAS_ARG
|
OPT_EXPERT
,
{.
func_arg
=
opt_cpuflags
},
"force specific cpu flags"
,
"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