diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-11-18 14:54:10 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-12-29 09:31:06 +0800 |
commit | 5024286465acc35ae005715e0152a135df30ad0a (patch) | |
tree | b919d1411efcb9d5a58928fb6e495bb2cf0a1b36 /libavfilter/vf_dnn_processing.c | |
parent | e67b5d0a247cc7c896c6c1042cf140c429866738 (diff) |
dnn_interface: change from 'void *userdata' to 'AVFilterContext *filter_ctx'
'void *' is too flexible, since we can derive info from
AVFilterContext*, so we just unify the interface with this data
structure.
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'libavfilter/vf_dnn_processing.c')
-rw-r--r-- | libavfilter/vf_dnn_processing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_dnn_processing.c b/libavfilter/vf_dnn_processing.c index 5aad899dd0..342b06e6ae 100644 --- a/libavfilter/vf_dnn_processing.c +++ b/libavfilter/vf_dnn_processing.c @@ -97,7 +97,7 @@ static av_cold int init(AVFilterContext *context) return AVERROR(EINVAL); } - ctx->model = (ctx->dnn_module->load_model)(ctx->model_filename, ctx->backend_options, ctx); + ctx->model = (ctx->dnn_module->load_model)(ctx->model_filename, ctx->backend_options, context); if (!ctx->model) { av_log(ctx, AV_LOG_ERROR, "could not load DNN model\n"); return AVERROR(EINVAL); |