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
8bb5680d
Commit
8bb5680d
authored
Mar 10, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: improve feedback in case of not found option
parent
684a2646
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cmdutils.c
cmdutils.c
+4
-1
No files found.
cmdutils.c
View file @
8bb5680d
...
...
@@ -294,7 +294,8 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt,
int
ret
=
po
->
u
.
func_arg
(
optctx
,
opt
,
arg
);
if
(
ret
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Failed to set value '%s' for option '%s'
\n
"
,
arg
,
opt
);
"Failed to set value '%s' for option '%s': %s
\n
"
,
arg
,
opt
,
av_err2str
(
ret
));
return
ret
;
}
}
...
...
@@ -546,6 +547,8 @@ int opt_default(void *optctx, const char *opt, const char *arg)
if
(
consumed
)
return
0
;
av_log
(
NULL
,
AV_LOG_ERROR
,
"Could not find option '%s' in any of the FFmpeg subsystems "
"(codec, format, scaler, resampler contexts)
\n
"
,
opt
);
return
AVERROR_OPTION_NOT_FOUND
;
}
...
...
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