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
582d4211
Commit
582d4211
authored
Jun 26, 2016
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_scale_vaapi: Respect driver quirks around buffer destruction
parent
221ffca6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
vf_scale_vaapi.c
libavfilter/vf_scale_vaapi.c
+8
-7
No files found.
libavfilter/vf_scale_vaapi.c
View file @
582d4211
...
...
@@ -342,13 +342,14 @@ static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
goto
fail_after_render
;
}
// This doesn't get freed automatically for some reason.
vas
=
vaDestroyBuffer
(
ctx
->
hwctx
->
display
,
params_id
);
if
(
vas
!=
VA_STATUS_SUCCESS
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Failed to free parameter buffer: "
"%d (%s).
\n
"
,
vas
,
vaErrorStr
(
vas
));
err
=
AVERROR
(
EIO
);
goto
fail
;
if
(
ctx
->
hwctx
->
driver_quirks
&
AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS
)
{
vas
=
vaDestroyBuffer
(
ctx
->
hwctx
->
display
,
params_id
);
if
(
vas
!=
VA_STATUS_SUCCESS
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Failed to free parameter buffer: "
"%d (%s).
\n
"
,
vas
,
vaErrorStr
(
vas
));
// And ignore.
}
}
av_frame_copy_props
(
output_frame
,
input_frame
);
...
...
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