X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fdnn%2Fdnn_backend_openvino.c;fp=libavfilter%2Fdnn%2Fdnn_backend_openvino.c;h=3bea2d526aebf5191d57d99680c4734080fe9076;hb=59021d79a24e28434f57376276625bc44eff340c;hp=66845fbd510562d09e5b3422431345d21c872c01;hpb=d2ccbc966b151f2500aa43e789288af188258ba3;p=ffmpeg diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index 66845fbd510..3bea2d526ae 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b/libavfilter/dnn/dnn_backend_openvino.c @@ -166,8 +166,8 @@ static DNNReturnType fill_model_input_ov(OVModel *ov_model, RequestItem *request for (int i = 0; i < request->task_count; ++i) { task = request->tasks[i]; if (task->do_ioproc) { - if (ov_model->model->pre_proc != NULL) { - ov_model->model->pre_proc(task->in_frame, &input, ov_model->model->filter_ctx); + if (ov_model->model->frame_pre_proc != NULL) { + ov_model->model->frame_pre_proc(task->in_frame, &input, ov_model->model->filter_ctx); } else { ff_proc_from_frame_to_dnn(task->in_frame, &input, ov_model->model->func_type, ctx); } @@ -237,8 +237,8 @@ static void infer_completion_callback(void *args) for (int i = 0; i < request->task_count; ++i) { task = request->tasks[i]; if (task->do_ioproc) { - if (task->ov_model->model->post_proc != NULL) { - task->ov_model->model->post_proc(task->out_frame, &output, task->ov_model->model->filter_ctx); + if (task->ov_model->model->frame_post_proc != NULL) { + task->ov_model->model->frame_post_proc(task->out_frame, &output, task->ov_model->model->filter_ctx); } else { ff_proc_from_dnn_to_frame(task->out_frame, &output, ctx); }