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
c0a33c47
Commit
c0a33c47
authored
Dec 08, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: avfilter_register() that works in O(1) time
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
00bef643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
avfilter.c
libavfilter/avfilter.c
+3
-1
No files found.
libavfilter/avfilter.c
View file @
c0a33c47
...
...
@@ -456,6 +456,7 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha
}
static
AVFilter
*
first_filter
;
static
AVFilter
**
last_filter
=
&
first_filter
;
#if !FF_API_NOCONST_GET_NAME
const
...
...
@@ -476,7 +477,7 @@ AVFilter *avfilter_get_by_name(const char *name)
int
avfilter_register
(
AVFilter
*
filter
)
{
AVFilter
**
f
=
&
fir
st_filter
;
AVFilter
**
f
=
la
st_filter
;
int
i
;
/* the filter must select generic or internal exclusively */
...
...
@@ -492,6 +493,7 @@ int avfilter_register(AVFilter *filter)
while
(
*
f
||
avpriv_atomic_ptr_cas
((
void
*
volatile
*
)
f
,
NULL
,
filter
))
f
=
&
(
*
f
)
->
next
;
last_filter
=
&
filter
->
next
;
return
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