[FFmpeg-devel] [PATCH 1/3] dnn/openvino: remove unnecessary code
Ting Fu
ting.fu at intel.com
Mon Jan 11 04:20:30 EET 2021
Signed-off-by: Ting Fu <ting.fu at intel.com>
---
libavfilter/dnn/dnn_backend_openvino.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c
index d27e451eea..050be97209 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b/libavfilter/dnn/dnn_backend_openvino.c
@@ -284,14 +284,6 @@ static DNNReturnType get_input_ov(void *model, DNNData *input, const char *input
return DNN_ERROR;
}
- // The order of dims in the openvino is fixed and it is always NCHW for 4-D data.
- // while we pass NHWC data from FFmpeg to openvino
- status = ie_network_set_input_layout(ov_model->network, input_name, NHWC);
- if (status != OK) {
- av_log(ctx, AV_LOG_ERROR, "Input \"%s\" does not match layout NHWC\n", input_name);
- return DNN_ERROR;
- }
-
input->channels = dims.dims[1];
input->height = dims.dims[2];
input->width = dims.dims[3];
--
2.17.1
More information about the ffmpeg-devel
mailing list