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
539e5ac2
Commit
539e5ac2
authored
Aug 11, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/qsvdec: free the lavc decoder before closing MFX/VAAPI
lavc expects MFX to still be in a usable state on close.
parent
3ee462dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
qsvdec.c
doc/examples/qsvdec.c
+4
-4
No files found.
doc/examples/qsvdec.c
View file @
539e5ac2
...
...
@@ -468,6 +468,10 @@ finish:
av_frame_free
(
&
frame
);
if
(
decoder_ctx
)
av_freep
(
&
decoder_ctx
->
hwaccel_context
);
avcodec_free_context
(
&
decoder_ctx
);
free_surfaces
(
&
decode
);
if
(
decode
.
mfx_session
)
...
...
@@ -477,10 +481,6 @@ finish:
if
(
dpy
)
XCloseDisplay
(
dpy
);
if
(
decoder_ctx
)
av_freep
(
&
decoder_ctx
->
hwaccel_context
);
avcodec_free_context
(
&
decoder_ctx
);
avio_close
(
output_ctx
);
return
ret
;
...
...
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