summaryrefslogtreecommitdiff
path: root/libavutil/opencl_internal.h
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-31 10:36:22 -0400
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-31 10:40:54 -0400
commit8a5b60a6b1d841b74c2670f5165c8b05321f395a (patch)
tree4563051f26fb9971a898f63a0e90476e1924826d /libavutil/opencl_internal.h
parent7910a2c26939c4e2400af930b0995ada56a895c8 (diff)
avutil/opencl_internal: add av_warn_unused_result
clSetKernelArg can return an error due to lack of memory (for instance): https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clSetKernelArg.html. Thus this error must be propagated. Currently should not trigger warnings, but adds robustness. Untested. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavutil/opencl_internal.h')
-rw-r--r--libavutil/opencl_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/opencl_internal.h b/libavutil/opencl_internal.h
index dacd930ac9..ddc6d3acba 100644
--- a/libavutil/opencl_internal.h
+++ b/libavutil/opencl_internal.h
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "attributes.h"
#include "opencl.h"
#define FF_OPENCL_PARAM_INFO(a) ((void*)(&(a))), (sizeof(a))
@@ -30,4 +31,5 @@ typedef struct {
void *ctx;
} FFOpenclParam;
+av_warn_unused_result
int avpriv_opencl_set_parameter(FFOpenclParam *opencl_param, ...);