forked from FFmpeg/FFmpeg
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>
This commit is contained in:
parent
7910a2c269
commit
8a5b60a6b1
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "attributes.h"
|
||||||
#include "opencl.h"
|
#include "opencl.h"
|
||||||
|
|
||||||
#define FF_OPENCL_PARAM_INFO(a) ((void*)(&(a))), (sizeof(a))
|
#define FF_OPENCL_PARAM_INFO(a) ((void*)(&(a))), (sizeof(a))
|
||||||
|
@ -30,4 +31,5 @@ typedef struct {
|
||||||
void *ctx;
|
void *ctx;
|
||||||
} FFOpenclParam;
|
} FFOpenclParam;
|
||||||
|
|
||||||
|
av_warn_unused_result
|
||||||
int avpriv_opencl_set_parameter(FFOpenclParam *opencl_param, ...);
|
int avpriv_opencl_set_parameter(FFOpenclParam *opencl_param, ...);
|
||||||
|
|
Loading…
Add table
Reference in a new issue