mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
dnn_backend_openvino.c: allow out_frame as NULL for analytic case
This commit is contained in:
parent
2da3a5c10f
commit
b0d75a8de9
@ -616,7 +616,7 @@ DNNReturnType ff_dnn_execute_model_ov(const DNNModel *model, const char *input_n
|
|||||||
return DNN_ERROR;
|
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");
|
av_log(ctx, AV_LOG_ERROR, "out frame is NULL when execute model.\n");
|
||||||
return DNN_ERROR;
|
return DNN_ERROR;
|
||||||
}
|
}
|
||||||
@ -669,7 +669,7 @@ DNNReturnType ff_dnn_execute_model_async_ov(const DNNModel *model, const char *i
|
|||||||
return DNN_ERROR;
|
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");
|
av_log(ctx, AV_LOG_ERROR, "out frame is NULL when async execute model.\n");
|
||||||
return DNN_ERROR;
|
return DNN_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user