]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/dnn/dnn_backend_native_layer_depth2space.c
avfilter/dnn: get the data type of network output from dnn execution result
[ffmpeg] / libavfilter / dnn / dnn_backend_native_layer_depth2space.c
index 174676e14ab4a839e7d4029a2f4d4556c6997926..7dab19d40fb5713badb3a8c9e405b0eeab1dc97d 100644 (file)
@@ -69,6 +69,7 @@ int dnn_execute_layer_depth2space(DnnOperand *operands, const int32_t *input_ope
     output_operand->dims[1] = height * block_size;
     output_operand->dims[2] = width * block_size;
     output_operand->dims[3] = new_channels;
+    output_operand->data_type = operands[input_operand_index].data_type;
     output_operand->length = calculate_operand_data_length(output_operand);
     output_operand->data = av_realloc(output_operand->data, output_operand->length);
     if (!output_operand->data)