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
e412d683
Commit
e412d683
authored
Jun 26, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext: Perform usual uninitialisation on derived frames contexts
parent
caecb850
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
hwcontext.c
libavutil/hwcontext.c
+7
-10
No files found.
libavutil/hwcontext.c
View file @
e412d683
...
...
@@ -205,19 +205,16 @@ static void hwframe_ctx_free(void *opaque, uint8_t *data)
{
AVHWFramesContext
*
ctx
=
(
AVHWFramesContext
*
)
data
;
if
(
ctx
->
internal
->
source_frames
)
{
av_buffer_
unref
(
&
ctx
->
internal
->
source_frames
);
if
(
ctx
->
internal
->
pool_internal
)
av_buffer_
pool_uninit
(
&
ctx
->
internal
->
pool_internal
);
}
else
{
if
(
ctx
->
internal
->
pool_internal
)
av_buffer_pool_uninit
(
&
ctx
->
internal
->
pool_internal
);
if
(
ctx
->
internal
->
hw_type
->
frames_uninit
)
ctx
->
internal
->
hw_type
->
frames_uninit
(
ctx
);
if
(
ctx
->
internal
->
hw_type
->
frames_uninit
)
ctx
->
internal
->
hw_type
->
frames_uninit
(
ctx
);
if
(
ctx
->
free
)
ctx
->
free
(
ctx
);
if
(
ctx
->
free
)
ctx
->
free
(
ctx
);
}
av_buffer_unref
(
&
ctx
->
internal
->
source_frames
);
av_buffer_unref
(
&
ctx
->
device_ref
);
...
...
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