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
991db639
Commit
991db639
authored
Oct 28, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frame_thread_encoder: fix packet memleak
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d8246d47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
frame_thread_encoder.c
libavcodec/frame_thread_encoder.c
+1
-1
No files found.
libavcodec/frame_thread_encoder.c
View file @
991db639
...
@@ -259,7 +259,7 @@ int ff_thread_video_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVF
...
@@ -259,7 +259,7 @@ int ff_thread_video_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVF
}
}
task
=
c
->
finished_tasks
[
c
->
finished_task_index
];
task
=
c
->
finished_tasks
[
c
->
finished_task_index
];
*
pkt
=
*
(
AVPacket
*
)(
task
.
outdata
);
*
pkt
=
*
(
AVPacket
*
)(
task
.
outdata
);
c
->
finished_tasks
[
c
->
finished_task_index
].
outdata
=
NULL
;
av_freep
(
&
c
->
finished_tasks
[
c
->
finished_task_index
].
outdata
)
;
c
->
finished_task_index
=
(
c
->
finished_task_index
+
1
)
%
BUFFER_SIZE
;
c
->
finished_task_index
=
(
c
->
finished_task_index
+
1
)
%
BUFFER_SIZE
;
pthread_mutex_unlock
(
&
c
->
finished_task_mutex
);
pthread_mutex_unlock
(
&
c
->
finished_task_mutex
);
...
...
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