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
9676b9a2
Commit
9676b9a2
authored
Mar 12, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVOption: remove an unused function parameter.
parent
ef4d34aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
opt.c
libavutil/opt.c
+4
-6
No files found.
libavutil/opt.c
View file @
9676b9a2
...
@@ -349,7 +349,7 @@ int av_opt_get(void *obj, const char *name, int search_flags, uint8_t **out_val)
...
@@ -349,7 +349,7 @@ int av_opt_get(void *obj, const char *name, int search_flags, uint8_t **out_val)
return
0
;
return
0
;
}
}
static
int
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
,
double
*
num
,
int
*
den
,
int64_t
*
intnum
,
int
search_flags
)
int
search_flags
)
{
{
void
*
dst
,
*
target_obj
;
void
*
dst
,
*
target_obj
;
...
@@ -359,8 +359,6 @@ static int get_number(void *obj, const char *name, const AVOption **o_out, doubl
...
@@ -359,8 +359,6 @@ static int get_number(void *obj, const char *name, const AVOption **o_out, doubl
dst
=
((
uint8_t
*
)
target_obj
)
+
o
->
offset
;
dst
=
((
uint8_t
*
)
target_obj
)
+
o
->
offset
;
if
(
o_out
)
*
o_out
=
o
;
return
read_number
(
o
,
dst
,
num
,
den
,
intnum
);
return
read_number
(
o
,
dst
,
num
,
den
,
intnum
);
error
:
error
:
...
@@ -374,7 +372,7 @@ int av_opt_get_int(void *obj, const char *name, int search_flags, int64_t *out_v
...
@@ -374,7 +372,7 @@ int av_opt_get_int(void *obj, const char *name, int search_flags, int64_t *out_v
double
num
=
1
;
double
num
=
1
;
int
ret
,
den
=
1
;
int
ret
,
den
=
1
;
if
((
ret
=
get_number
(
obj
,
name
,
NULL
,
&
num
,
&
den
,
&
intnum
,
search_flags
))
<
0
)
if
((
ret
=
get_number
(
obj
,
name
,
&
num
,
&
den
,
&
intnum
,
search_flags
))
<
0
)
return
ret
;
return
ret
;
*
out_val
=
num
*
intnum
/
den
;
*
out_val
=
num
*
intnum
/
den
;
return
0
;
return
0
;
...
@@ -386,7 +384,7 @@ int av_opt_get_double(void *obj, const char *name, int search_flags, double *out
...
@@ -386,7 +384,7 @@ int av_opt_get_double(void *obj, const char *name, int search_flags, double *out
double
num
=
1
;
double
num
=
1
;
int
ret
,
den
=
1
;
int
ret
,
den
=
1
;
if
((
ret
=
get_number
(
obj
,
name
,
NULL
,
&
num
,
&
den
,
&
intnum
,
search_flags
))
<
0
)
if
((
ret
=
get_number
(
obj
,
name
,
&
num
,
&
den
,
&
intnum
,
search_flags
))
<
0
)
return
ret
;
return
ret
;
*
out_val
=
num
*
intnum
/
den
;
*
out_val
=
num
*
intnum
/
den
;
return
0
;
return
0
;
...
@@ -398,7 +396,7 @@ int av_opt_get_q(void *obj, const char *name, int search_flags, AVRational *out_
...
@@ -398,7 +396,7 @@ int av_opt_get_q(void *obj, const char *name, int search_flags, AVRational *out_
double
num
=
1
;
double
num
=
1
;
int
ret
,
den
=
1
;
int
ret
,
den
=
1
;
if
((
ret
=
get_number
(
obj
,
name
,
NULL
,
&
num
,
&
den
,
&
intnum
,
search_flags
))
<
0
)
if
((
ret
=
get_number
(
obj
,
name
,
&
num
,
&
den
,
&
intnum
,
search_flags
))
<
0
)
return
ret
;
return
ret
;
if
(
num
==
1
.
0
&&
(
int
)
intnum
==
intnum
)
if
(
num
==
1
.
0
&&
(
int
)
intnum
==
intnum
)
...
...
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