diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-08-07 14:32:55 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-08-12 15:43:40 +0800 |
commit | 0a51abe8ab71c03eff66200265142fc910bcbfe2 (patch) | |
tree | 2f3e24f02a5f54f6ebd95950774f5adf7587229f /libavfilter/vf_sr.c | |
parent | 4ed6bca4ae578e050d60aa96dbbdefd60f6d67c4 (diff) | |
download | ffmpeg-0a51abe8ab71c03eff66200265142fc910bcbfe2.tar.gz |
dnn: add backend options when load the model
different backend might need different options for a better performance,
so, add the parameter into dnn interface, as a preparation.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'libavfilter/vf_sr.c')
-rw-r--r-- | libavfilter/vf_sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index f000eda186..1dee317372 100644 --- a/libavfilter/vf_sr.c +++ b/libavfilter/vf_sr.c @@ -81,7 +81,7 @@ static av_cold int init(AVFilterContext *context) av_log(context, AV_LOG_ERROR, "load_model for network was not specified\n"); return AVERROR(EIO); } - sr_context->model = (sr_context->dnn_module->load_model)(sr_context->model_filename); + sr_context->model = (sr_context->dnn_module->load_model)(sr_context->model_filename, NULL); if (!sr_context->model){ av_log(context, AV_LOG_ERROR, "could not load DNN model\n"); return AVERROR(EIO); |