mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
@ -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, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user