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
53fd1ab2
Commit
53fd1ab2
authored
Jun 29, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: make av_register_*put_format() thread safe
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b36b5edb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
format.c
libavformat/format.c
+5
-8
No files found.
libavformat/format.c
View file @
53fd1ab2
...
...
@@ -21,6 +21,7 @@
#include "avformat.h"
#include "internal.h"
#include "libavutil/atomic.h"
#include "libavutil/avstring.h"
/**
...
...
@@ -52,22 +53,18 @@ void av_register_input_format(AVInputFormat *format)
{
AVInputFormat
**
p
=
&
first_iformat
;
while
(
*
p
!=
NULL
)
p
=
&
(
*
p
)
->
next
;
*
p
=
format
;
format
->
next
=
NULL
;
while
(
avpriv_atomic_ptr_cas
((
void
*
volatile
*
)
p
,
NULL
,
format
))
p
=
&
(
*
p
)
->
next
;
}
void
av_register_output_format
(
AVOutputFormat
*
format
)
{
AVOutputFormat
**
p
=
&
first_oformat
;
while
(
*
p
!=
NULL
)
p
=
&
(
*
p
)
->
next
;
*
p
=
format
;
format
->
next
=
NULL
;
while
(
avpriv_atomic_ptr_cas
((
void
*
volatile
*
)
p
,
NULL
,
format
))
p
=
&
(
*
p
)
->
next
;
}
int
av_match_ext
(
const
char
*
filename
,
const
char
*
extensions
)
...
...
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