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
55a7e7e3
Commit
55a7e7e3
authored
Jan 22, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_vaapi: Always set hwaccel_ctx, so it gets properly cleaned up on error
Fixes CID 1398954.
parent
3420b34a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ffmpeg_vaapi.c
ffmpeg_vaapi.c
+1
-1
No files found.
ffmpeg_vaapi.c
View file @
55a7e7e3
...
...
@@ -157,6 +157,7 @@ int vaapi_decode_init(AVCodecContext *avctx)
if
(
!
ctx
)
return
AVERROR
(
ENOMEM
);
ctx
->
class
=
&
vaapi_class
;
ist
->
hwaccel_ctx
=
ctx
;
ctx
->
device_ref
=
av_buffer_ref
(
hw_device_ctx
);
ctx
->
device
=
(
AVHWDeviceContext
*
)
ctx
->
device_ref
->
data
;
...
...
@@ -202,7 +203,6 @@ int vaapi_decode_init(AVCodecContext *avctx)
goto
fail
;
}
ist
->
hwaccel_ctx
=
ctx
;
ist
->
hwaccel_uninit
=
&
vaapi_decode_uninit
;
ist
->
hwaccel_get_buffer
=
&
vaapi_get_buffer
;
ist
->
hwaccel_retrieve_data
=
&
vaapi_retrieve_data
;
...
...
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