Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b003d0be
Commit
b003d0be
authored
Aug 23, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVOptions: cosmetics, move and rename static av_set_number().
parent
c8d787d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
opt.c
libavutil/opt.c
+12
-12
No files found.
libavutil/opt.c
View file @
b003d0be
...
...
@@ -86,15 +86,6 @@ static int av_set_number2(void *obj, const char *name, double num, int den, int6
return
0
;
}
static
const
AVOption
*
av_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
)
return
NULL
;
else
return
o
;
}
static
const
double
const_values
[]
=
{
M_PI
,
M_E
,
...
...
@@ -231,19 +222,28 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons
return
AVERROR
(
EINVAL
);
}
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
)
return
NULL
;
else
return
o
;
}
const
AVOption
*
av_set_double
(
void
*
obj
,
const
char
*
name
,
double
n
)
{
return
av_
set_number
(
obj
,
name
,
n
,
1
,
1
);
return
set_number
(
obj
,
name
,
n
,
1
,
1
);
}
const
AVOption
*
av_set_q
(
void
*
obj
,
const
char
*
name
,
AVRational
n
)
{
return
av_
set_number
(
obj
,
name
,
n
.
num
,
n
.
den
,
1
);
return
set_number
(
obj
,
name
,
n
.
num
,
n
.
den
,
1
);
}
const
AVOption
*
av_set_int
(
void
*
obj
,
const
char
*
name
,
int64_t
n
)
{
return
av_
set_number
(
obj
,
name
,
1
,
1
,
n
);
return
set_number
(
obj
,
name
,
1
,
1
,
n
);
}
/**
...
...
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