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
5a43bd5e
Commit
5a43bd5e
authored
Apr 14, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
options: simplify av_find_opt by using av_next_option.
parent
5b81e295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
opt.c
libavutil/opt.c
+2
-3
No files found.
libavutil/opt.c
View file @
5a43bd5e
...
@@ -33,10 +33,9 @@
...
@@ -33,10 +33,9 @@
//FIXME order them and do a bin search
//FIXME order them and do a bin search
const
AVOption
*
av_find_opt
(
void
*
v
,
const
char
*
name
,
const
char
*
unit
,
int
mask
,
int
flags
)
const
AVOption
*
av_find_opt
(
void
*
v
,
const
char
*
name
,
const
char
*
unit
,
int
mask
,
int
flags
)
{
{
AVClass
*
c
=
*
(
AVClass
**
)
v
;
//FIXME silly way of storing AVClass
const
AVOption
*
o
=
NULL
;
const
AVOption
*
o
=
c
->
option
;
for
(;
o
&&
o
->
name
;
o
++
)
{
while
((
o
=
av_next_option
(
v
,
o
))
)
{
if
(
!
strcmp
(
o
->
name
,
name
)
&&
(
!
unit
||
(
o
->
unit
&&
!
strcmp
(
o
->
unit
,
unit
)))
&&
(
o
->
flags
&
mask
)
==
flags
)
if
(
!
strcmp
(
o
->
name
,
name
)
&&
(
!
unit
||
(
o
->
unit
&&
!
strcmp
(
o
->
unit
,
unit
)))
&&
(
o
->
flags
&
mask
)
==
flags
)
return
o
;
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