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
a994fc39
Commit
a994fc39
authored
Mar 14, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/utils: mark codec argument as const in ff_lock_avcodec()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
43cafb95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
internal.h
libavcodec/internal.h
+1
-1
utils.c
libavcodec/utils.c
+1
-1
No files found.
libavcodec/internal.h
View file @
a994fc39
...
...
@@ -167,7 +167,7 @@ int ff_init_buffer_info(AVCodecContext *s, AVFrame *frame);
void
avpriv_color_frame
(
AVFrame
*
frame
,
const
int
color
[
4
]);
extern
volatile
int
ff_avcodec_locked
;
int
ff_lock_avcodec
(
AVCodecContext
*
log_ctx
,
AVCodec
*
codec
);
int
ff_lock_avcodec
(
AVCodecContext
*
log_ctx
,
const
AVCodec
*
codec
);
int
ff_unlock_avcodec
(
void
);
int
avpriv_lock_avformat
(
void
);
...
...
libavcodec/utils.c
View file @
a994fc39
...
...
@@ -3604,7 +3604,7 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op))
return
0
;
}
int
ff_lock_avcodec
(
AVCodecContext
*
log_ctx
,
AVCodec
*
codec
)
int
ff_lock_avcodec
(
AVCodecContext
*
log_ctx
,
const
AVCodec
*
codec
)
{
if
(
lockmgr_cb
)
{
if
((
*
lockmgr_cb
)(
&
codec_mutex
,
AV_LOCK_OBTAIN
))
...
...
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