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
bea5670a
Commit
bea5670a
authored
Aug 23, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVOptions: drop av_ prefix from static av_get_number().
parent
14400374
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
opt.c
libavutil/opt.c
+4
-4
No files found.
libavutil/opt.c
View file @
bea5670a
...
...
@@ -261,7 +261,7 @@ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, c
return
buf
;
}
static
int
av_
get_number
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
,
double
*
num
,
int
*
den
,
int64_t
*
intnum
)
static
int
get_number
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
,
double
*
num
,
int
*
den
,
int64_t
*
intnum
)
{
const
AVOption
*
o
=
av_opt_find
(
obj
,
name
,
NULL
,
0
,
0
);
void
*
dst
;
...
...
@@ -293,7 +293,7 @@ double av_get_double(void *obj, const char *name, const AVOption **o_out)
double
num
=
1
;
int
den
=
1
;
if
(
av_
get_number
(
obj
,
name
,
o_out
,
&
num
,
&
den
,
&
intnum
)
<
0
)
if
(
get_number
(
obj
,
name
,
o_out
,
&
num
,
&
den
,
&
intnum
)
<
0
)
return
NAN
;
return
num
*
intnum
/
den
;
}
...
...
@@ -304,7 +304,7 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out)
double
num
=
1
;
int
den
=
1
;
if
(
av_
get_number
(
obj
,
name
,
o_out
,
&
num
,
&
den
,
&
intnum
)
<
0
)
if
(
get_number
(
obj
,
name
,
o_out
,
&
num
,
&
den
,
&
intnum
)
<
0
)
return
(
AVRational
){
0
,
0
};
if
(
num
==
1
.
0
&&
(
int
)
intnum
==
intnum
)
return
(
AVRational
){
intnum
,
den
};
...
...
@@ -318,7 +318,7 @@ int64_t av_get_int(void *obj, const char *name, const AVOption **o_out)
double
num
=
1
;
int
den
=
1
;
if
(
av_
get_number
(
obj
,
name
,
o_out
,
&
num
,
&
den
,
&
intnum
)
<
0
)
if
(
get_number
(
obj
,
name
,
o_out
,
&
num
,
&
den
,
&
intnum
)
<
0
)
return
-
1
;
return
num
*
intnum
/
den
;
}
...
...
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