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
cf10095f
Commit
cf10095f
authored
Aug 23, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVOptions: cosmetics, rename static av_set_number2() to write_number().
parent
b003d0be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
opt.c
libavutil/opt.c
+3
-3
No files found.
libavutil/opt.c
View file @
cf10095f
...
...
@@ -54,7 +54,7 @@ const AVOption *av_next_option(void *obj, const AVOption *last)
else
return
(
*
(
AVClass
**
)
obj
)
->
option
;
}
static
int
av_set_number2
(
void
*
obj
,
const
char
*
name
,
double
num
,
int
den
,
int64_t
intnum
,
const
AVOption
**
o_out
)
static
int
write_number
(
void
*
obj
,
const
char
*
name
,
double
num
,
int
den
,
int64_t
intnum
,
const
AVOption
**
o_out
)
{
const
AVOption
*
o
=
av_opt_find
(
obj
,
name
,
NULL
,
0
,
0
);
void
*
dst
;
...
...
@@ -184,7 +184,7 @@ static int set_string_number(void *obj, const AVOption *o, const char *val, void
else
if
(
cmd
==
'-'
)
d
=
notfirst
*
av_get_double
(
obj
,
o
->
name
,
NULL
)
-
d
;
}
if
((
ret
=
av_set_number2
(
obj
,
o
->
name
,
d
,
1
,
1
,
NULL
))
<
0
)
if
((
ret
=
write_number
(
obj
,
o
->
name
,
d
,
1
,
1
,
NULL
))
<
0
)
return
ret
;
val
+=
i
;
if
(
!*
val
)
...
...
@@ -225,7 +225,7 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons
static
const
AVOption
*
set_number
(
void
*
obj
,
const
char
*
name
,
double
num
,
int
den
,
int64_t
intnum
)
{
const
AVOption
*
o
=
NULL
;
if
(
av_set_number2
(
obj
,
name
,
num
,
den
,
intnum
,
&
o
)
<
0
)
if
(
write_number
(
obj
,
name
,
num
,
den
,
intnum
,
&
o
)
<
0
)
return
NULL
;
else
return
o
;
...
...
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