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
5fb9eb9e
Commit
5fb9eb9e
authored
Mar 31, 2019
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_misc_vaapi: Add missing return value checks
Parameter buffer creation can fail.
parent
6ed34a43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
vf_misc_vaapi.c
libavfilter/vf_misc_vaapi.c
+6
-9
No files found.
libavfilter/vf_misc_vaapi.c
View file @
5fb9eb9e
...
...
@@ -84,10 +84,9 @@ static int denoise_vaapi_build_filter_params(AVFilterContext *avctx)
denoise
.
value
=
map
(
ctx
->
denoise
,
DENOISE_MIN
,
DENOISE_MAX
,
caps
.
range
.
min_value
,
caps
.
range
.
max_value
);
ff_vaapi_vpp_make_param_buffers
(
avctx
,
VAProcFilterParameterBufferType
,
&
denoise
,
sizeof
(
denoise
),
1
);
return
0
;
return
ff_vaapi_vpp_make_param_buffers
(
avctx
,
VAProcFilterParameterBufferType
,
&
denoise
,
sizeof
(
denoise
),
1
);
}
static
int
sharpness_vaapi_build_filter_params
(
AVFilterContext
*
avctx
)
...
...
@@ -116,11 +115,9 @@ static int sharpness_vaapi_build_filter_params(AVFilterContext *avctx)
SHARPNESS_MIN
,
SHARPNESS_MAX
,
caps
.
range
.
min_value
,
caps
.
range
.
max_value
);
ff_vaapi_vpp_make_param_buffers
(
avctx
,
VAProcFilterParameterBufferType
,
&
sharpness
,
sizeof
(
sharpness
),
1
);
return
0
;
return
ff_vaapi_vpp_make_param_buffers
(
avctx
,
VAProcFilterParameterBufferType
,
&
sharpness
,
sizeof
(
sharpness
),
1
);
}
static
int
misc_vaapi_filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
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