[FFmpeg-cvslog] libavfilter/vf_dnn_detect: Add initialized value to function pointer

Wenbin Chen git at videolan.org
Thu Dec 21 10:17:19 EET 2023


ffmpeg | branch: master | Wenbin Chen <wenbin.chen at intel.com> | Mon Dec 18 14:36:05 2023 +0800| [9415c2c11fc7141587c387e59d55a024fe38d0a2] | committer: Haihao Xiang

libavfilter/vf_dnn_detect: Add initialized value to function pointer

Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9415c2c11fc7141587c387e59d55a024fe38d0a2
---

 libavfilter/vf_dnn_detect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c
index 52d5c3d798..88865c8a8e 100644
--- a/libavfilter/vf_dnn_detect.c
+++ b/libavfilter/vf_dnn_detect.c
@@ -157,7 +157,7 @@ static int dnn_detect_parse_yolo_output(AVFrame *frame, DNNData *output, int out
     float *output_data = output[output_index].data;
     float *anchors = ctx->anchors;
     AVDetectionBBox *bbox;
-    float (*post_process_raw_data)(float x);
+    float (*post_process_raw_data)(float x) = linear;
     int is_NHWC = 0;
 
     if (ctx->model_type == DDMT_YOLOV1V2) {



More information about the ffmpeg-cvslog mailing list