summaryrefslogtreecommitdiff
path: root/libavfilter/dnn
diff options
context:
space:
mode:
authorGuo, Yejun <yejun.guo@intel.com>2019-08-16 10:36:56 +0800
committerPedro Arthur <bygrandao@gmail.com>2019-08-19 11:37:16 -0300
commit29aeeb3e3e7b21a56ff4b1684fb65fa242a66c8d (patch)
treed2c42b9d6dbc8ef5cb3b14439b1840761941aff0 /libavfilter/dnn
parent596ecc295fc4bb3bc964d03e8a94bced52c40694 (diff)
libavfilter/dnn/dnn_backend_tf: fix typo that variable uninitialized.
if it is initialized randomly, the tensorflow lib will report error message such as: Attempt to add output -7920 of depth_to_space4 not in range [0, 1) to node with type Identity Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
Diffstat (limited to 'libavfilter/dnn')
-rw-r--r--libavfilter/dnn/dnn_backend_tf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
index ba959ae3a2..ca7434ab19 100644
--- a/libavfilter/dnn/dnn_backend_tf.c
+++ b/libavfilter/dnn/dnn_backend_tf.c
@@ -490,6 +490,7 @@ static DNNReturnType load_native_model(TFModel *tf_model, const char *model_file
op_desc = TF_NewOperation(tf_model->graph, "Identity", "y");
input.oper = op;
+ input.index = 0;
TF_AddInput(op_desc, input);
TF_FinishOperation(op_desc, tf_model->status);
if (TF_GetCode(tf_model->status) != TF_OK){