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
39406ea3
Commit
39406ea3
authored
Apr 04, 2013
by
highgod0401
Committed by
Michael Niedermayer
Apr 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/opencl: add check for the program number to create kernel
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b1dea2c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
opencl.c
libavutil/opencl.c
+5
-0
No files found.
libavutil/opencl.c
View file @
39406ea3
...
...
@@ -225,6 +225,11 @@ int av_opencl_create_kernel(AVOpenCLKernelEnv *env, const char *kernel_name)
ret
=
AVERROR
(
EINVAL
);
goto
end
;
}
if
(
gpu_env
.
program_count
==
0
)
{
av_log
(
&
openclutils
,
AV_LOG_ERROR
,
"Program count of OpenCL is 0, can not create kernel
\n
"
);
ret
=
AVERROR
(
EINVAL
);
goto
end
;
}
for
(
i
=
0
;
i
<
gpu_env
.
program_count
;
i
++
)
{
env
->
kernel
=
clCreateKernel
(
gpu_env
.
programs
[
i
],
kernel_name
,
&
status
);
if
(
status
==
CL_SUCCESS
)
...
...
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