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
0eed5016
Commit
0eed5016
authored
May 20, 2011
by
Martin Storsjö
Committed by
Michael Niedermayer
May 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoptions: Support getting flag values using av_get_int
parent
1b30e4f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
opt.c
libavutil/opt.c
+2
-1
No files found.
libavutil/opt.c
View file @
0eed5016
...
...
@@ -261,7 +261,7 @@ static int av_get_number(void *obj, const char *name, const AVOption **o_out, do
{
const
AVOption
*
o
=
av_find_opt
(
obj
,
name
,
NULL
,
0
,
0
);
void
*
dst
;
if
(
!
o
||
o
->
offset
<=
0
)
if
(
!
o
||
(
o
->
offset
<=
0
&&
o
->
type
!=
FF_OPT_TYPE_CONST
)
)
goto
error
;
dst
=
((
uint8_t
*
)
obj
)
+
o
->
offset
;
...
...
@@ -277,6 +277,7 @@ static int av_get_number(void *obj, const char *name, const AVOption **o_out, do
case
FF_OPT_TYPE_RATIONAL
:
*
intnum
=
((
AVRational
*
)
dst
)
->
num
;
*
den
=
((
AVRational
*
)
dst
)
->
den
;
return
0
;
case
FF_OPT_TYPE_CONST
:
*
intnum
=
o
->
default_val
.
dbl
;
return
0
;
}
error:
*
den
=*
intnum
=
0
;
...
...
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