summaryrefslogtreecommitdiff
path: root/libavfilter/vf_yadif_cuda.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_yadif_cuda.c')
-rw-r--r--libavfilter/vf_yadif_cuda.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavfilter/vf_yadif_cuda.c b/libavfilter/vf_yadif_cuda.c
index bbdbfc1adc..5099f0a806 100644
--- a/libavfilter/vf_yadif_cuda.c
+++ b/libavfilter/vf_yadif_cuda.c
@@ -24,7 +24,10 @@
#include "internal.h"
#include "yadif.h"
-extern char vf_yadif_cuda_ptx[];
+#include "cuda/load_helper.h"
+
+extern const unsigned char ff_vf_yadif_cuda_ptx_data[];
+extern const unsigned int ff_vf_yadif_cuda_ptx_len;
typedef struct DeintCUDAContext {
YADIFContext yadif;
@@ -318,7 +321,7 @@ static int config_output(AVFilterLink *link)
if (ret < 0)
goto exit;
- ret = CHECK_CU(cu->cuModuleLoadData(&s->cu_module, vf_yadif_cuda_ptx));
+ ret = ff_cuda_load_module(ctx, s->hwctx, &s->cu_module, ff_vf_yadif_cuda_ptx_data, ff_vf_yadif_cuda_ptx_len);
if (ret < 0)
goto exit;