libavfilter/dnn: Initialze DNNData variables
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
parent
c8c925dc29
commit
58b6c0c327
@ -622,7 +622,7 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int fill_model_input_tf(TFModel *tf_model, TFRequestItem *request) {
|
static int fill_model_input_tf(TFModel *tf_model, TFRequestItem *request) {
|
||||||
DNNData input;
|
DNNData input = { 0 };
|
||||||
LastLevelTaskItem *lltask;
|
LastLevelTaskItem *lltask;
|
||||||
TaskItem *task;
|
TaskItem *task;
|
||||||
TFInferRequest *infer_request = NULL;
|
TFInferRequest *infer_request = NULL;
|
||||||
@ -724,7 +724,7 @@ static void infer_completion_callback(void *args) {
|
|||||||
TFModel *tf_model = task->model;
|
TFModel *tf_model = task->model;
|
||||||
TFContext *ctx = &tf_model->ctx;
|
TFContext *ctx = &tf_model->ctx;
|
||||||
|
|
||||||
outputs = av_malloc_array(task->nb_output, sizeof(*outputs));
|
outputs = av_calloc(task->nb_output, sizeof(*outputs));
|
||||||
if (!outputs) {
|
if (!outputs) {
|
||||||
av_log(ctx, AV_LOG_ERROR, "Failed to allocate memory for *outputs\n");
|
av_log(ctx, AV_LOG_ERROR, "Failed to allocate memory for *outputs\n");
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user