summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorTing Fu <ting.fu@intel.com>2021-02-08 10:44:58 +0800
committerGuo, Yejun <yejun.guo@intel.com>2021-02-18 09:59:37 +0800
commitb0d75a8de924d90d0c9e8b75a485f35258920e02 (patch)
tree6c6e025b9caabbdb0e710d537c77fcfd98f334be /libavfilter
parent2da3a5c10f5249b21b8e37d1f354085178b0ffc3 (diff)
downloadffmpeg-b0d75a8de924d90d0c9e8b75a485f35258920e02.tar.gz
dnn_backend_openvino.c: allow out_frame as NULL for analytic case
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/dnn/dnn_backend_openvino.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c
index cca155a52c..5be053b7f8 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b/libavfilter/dnn/dnn_backend_openvino.c
@@ -616,7 +616,7 @@ DNNReturnType ff_dnn_execute_model_ov(const DNNModel *model, const char *input_n
return DNN_ERROR;
}
- if (!out_frame) {
+ if (!out_frame && model->func_type == DFT_PROCESS_FRAME) {
av_log(ctx, AV_LOG_ERROR, "out frame is NULL when execute model.\n");
return DNN_ERROR;
}
@@ -669,7 +669,7 @@ DNNReturnType ff_dnn_execute_model_async_ov(const DNNModel *model, const char *i
return DNN_ERROR;
}
- if (!out_frame) {
+ if (!out_frame && model->func_type == DFT_PROCESS_FRAME) {
av_log(ctx, AV_LOG_ERROR, "out frame is NULL when async execute model.\n");
return DNN_ERROR;
}