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
e4b1fcd4
Commit
e4b1fcd4
authored
Sep 30, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/opt: cosmetic fixes forgotten in the previous patch.
parent
438978fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
opt.c
libavutil/opt.c
+8
-5
opt.h
libavutil/opt.h
+2
-2
No files found.
libavutil/opt.c
View file @
e4b1fcd4
...
...
@@ -800,11 +800,14 @@ static int is_key_char(char c)
}
/**
* Read a key from a string. The key consists of is_key_char characters and
* must be terminated by a character from the delim string; spaces are
* ignored. The key buffer must be 4 bytes larger than the longest
* acceptable key. If the key is too long, an ellipsis will be written at
* the end. @return 0 for success (even with ellipsis), <0 for failure
* Read a key from a string.
*
* The key consists of is_key_char characters and must be terminated by a
* character from the delim string; spaces are ignored. The key buffer must
* be 4 bytes larger than the longest acceptable key. If the key is too
* long, an ellipsis will be written at the end.
*
* @return 0 for success (even with ellipsis), <0 for failure
*/
static
int
get_key
(
const
char
**
ropts
,
const
char
*
delim
,
char
*
key
,
unsigned
key_size
)
{
...
...
libavutil/opt.h
View file @
e4b1fcd4
...
...
@@ -394,7 +394,7 @@ int av_set_options_string(void *ctx, const char *opts,
const
char
*
key_val_sep
,
const
char
*
pairs_sep
);
/**
* Parse the key
=
value pairs list in opts. For each key=value pair found,
* Parse the key
-
value pairs list in opts. For each key=value pair found,
* set the value of the corresponding option in ctx.
*
* @param ctx the AVClass object to set options on
...
...
@@ -417,7 +417,7 @@ int av_set_options_string(void *ctx, const char *opts,
* cannot be set
*
* Options names must use only the following characters: a-z A-Z 0-9 - . / _
* Separators must use characters distinct from
from option
s and from each
* Separators must use characters distinct from
option name
s and from each
* other.
*/
int
av_opt_set_from_string
(
void
*
ctx
,
const
char
*
opts
,
...
...
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