History

lavfi/dnn_backend_openvino.c: only allow DFT_PROCESS_FRAME to get output dim

Guo, Yejun committed 5 years ago

Commit d2ccbc91 parent 5106fe81 file · +5 −0Browse files

Unified · Split

libavfilter/dnn/dnn_backend_openvino.c+5−0
@@ -493,6 +493,11 @@ static DNNReturnType get_output_ov(void *model, const char *input_name, int inpu · 492 unmodified lines
493493 IEStatusCode status;
494494 input_shapes_t input_shapes;
495495
496+ if (ov_model->model->func_type != DFT_PROCESS_FRAME) {
497+ av_log(ctx, AV_LOG_ERROR, "Get output dim only when processing frame.\n");
498+ return DNN_ERROR;
499+ }
500+
496501 if (ctx->options.input_resizable) {
497502 status = ie_network_get_input_shapes(ov_model->network, &input_shapes);
498503 input_shapes.shapes->shape.dims[2] = input_height;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t