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
11434c9b
Commit
11434c9b
authored
Aug 18, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pthread: add const to AVCodec pointers
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
7f9aaa49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pthread.c
libavcodec/pthread.c
+4
-4
No files found.
libavcodec/pthread.c
View file @
11434c9b
...
...
@@ -357,7 +357,7 @@ static attribute_align_arg void *frame_worker_thread(void *arg)
PerThreadContext
*
p
=
arg
;
FrameThreadContext
*
fctx
=
p
->
parent
;
AVCodecContext
*
avctx
=
p
->
avctx
;
AVCodec
*
codec
=
avctx
->
codec
;
const
AVCodec
*
codec
=
avctx
->
codec
;
while
(
1
)
{
if
(
p
->
state
==
STATE_INPUT_READY
&&
!
fctx
->
die
)
{
...
...
@@ -517,7 +517,7 @@ static int submit_packet(PerThreadContext *p, AVPacket *avpkt)
{
FrameThreadContext
*
fctx
=
p
->
parent
;
PerThreadContext
*
prev_thread
=
fctx
->
prev_thread
;
AVCodec
*
codec
=
p
->
avctx
->
codec
;
const
AVCodec
*
codec
=
p
->
avctx
->
codec
;
uint8_t
*
buf
=
p
->
avpkt
.
data
;
if
(
!
avpkt
->
size
&&
!
(
codec
->
capabilities
&
CODEC_CAP_DELAY
))
return
0
;
...
...
@@ -720,7 +720,7 @@ static void park_frame_worker_threads(FrameThreadContext *fctx, int thread_count
static
void
frame_thread_free
(
AVCodecContext
*
avctx
,
int
thread_count
)
{
FrameThreadContext
*
fctx
=
avctx
->
thread_opaque
;
AVCodec
*
codec
=
avctx
->
codec
;
const
AVCodec
*
codec
=
avctx
->
codec
;
int
i
;
park_frame_worker_threads
(
fctx
,
thread_count
);
...
...
@@ -777,7 +777,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
static
int
frame_thread_init
(
AVCodecContext
*
avctx
)
{
int
thread_count
=
avctx
->
thread_count
;
AVCodec
*
codec
=
avctx
->
codec
;
const
AVCodec
*
codec
=
avctx
->
codec
;
AVCodecContext
*
src
=
avctx
;
FrameThreadContext
*
fctx
;
int
i
,
err
=
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