aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-01-10 23:27:19 +0000
committerMark Thompson <sw@jkqxz.net>2018-01-10 23:27:19 +0000
commit526a87b47124bfd2d57901d1b9abd6d322eaf293 (patch)
treeadd911f4f1c47aa15fd9e04a73018ce556ed770b
parent9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39 (diff)
downloadffmpeg-526a87b47124bfd2d57901d1b9abd6d322eaf293.tar.gz
vf_program_opencl: Add missing error code returns
Fixes CID #1427285.
-rw-r--r--libavfilter/vf_program_opencl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_program_opencl.c b/libavfilter/vf_program_opencl.c
index d49365aa55..4ee9668236 100644
--- a/libavfilter/vf_program_opencl.c
+++ b/libavfilter/vf_program_opencl.c
@@ -116,12 +116,14 @@ static int program_opencl_run(AVFilterContext *avctx)
if (cle != CL_SUCCESS) {
av_log(avctx, AV_LOG_ERROR, "Failed to set kernel "
"destination image argument: %d.\n", cle);
+ err = AVERROR_UNKNOWN;
goto fail;
}
cle = clSetKernelArg(ctx->kernel, 1, sizeof(cl_uint), &ctx->index);
if (cle != CL_SUCCESS) {
av_log(avctx, AV_LOG_ERROR, "Failed to set kernel "
"index argument: %d.\n", cle);
+ err = AVERROR_UNKNOWN;
goto fail;
}
@@ -135,6 +137,7 @@ static int program_opencl_run(AVFilterContext *avctx)
if (cle != CL_SUCCESS) {
av_log(avctx, AV_LOG_ERROR, "Failed to set kernel "
"source image argument %d: %d.\n", input, cle);
+ err = AVERROR_UNKNOWN;
goto fail;
}
}