[FFmpeg-devel] [PATCH 10/10] avfilter/dnn_backend_tf: silence implicit cast warning
Zhao Zhili
quinkblack at foxmail.com
Sun Apr 30 18:39:02 EEST 2023
From: Zhao Zhili <zhilizhao at tencent.com>
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
---
libavfilter/dnn/dnn_backend_tf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
index c15f1a7d3b..b521de7fbe 100644
--- a/libavfilter/dnn/dnn_backend_tf.c
+++ b/libavfilter/dnn/dnn_backend_tf.c
@@ -735,7 +735,7 @@ static void infer_completion_callback(void *args) {
outputs[i].width = TF_Dim(infer_request->output_tensors[i], 2);
outputs[i].channels = TF_Dim(infer_request->output_tensors[i], 3);
outputs[i].data = TF_TensorData(infer_request->output_tensors[i]);
- outputs[i].dt = TF_TensorType(infer_request->output_tensors[i]);
+ outputs[i].dt = (DNNDataType)TF_TensorType(infer_request->output_tensors[i]);
}
switch (tf_model->model->func_type) {
case DFT_PROCESS_FRAME:
--
2.40.1
More information about the ffmpeg-devel
mailing list