summaryrefslogtreecommitdiffstats
path: root/libavfilter
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 /libavfilter
parent9b4611a1c1f2ac5d1bfd75f7e6e41aa0bc15ca39 (diff)
downloadffmpeg-streaming-526a87b47124bfd2d57901d1b9abd6d322eaf293.zip
ffmpeg-streaming-526a87b47124bfd2d57901d1b9abd6d322eaf293.tar.gz
vf_program_opencl: Add missing error code returns
Fixes CID #1427285.
Diffstat (limited to 'libavfilter')
-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 d49365a..4ee9668 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;
}
}
OpenPOWER on IntegriCloud