diff options
author | Wenbin Chen <wenbin.chen@intel.com> | 2023-12-14 10:49:27 +0800 |
---|---|---|
committer | Guo Yejun <yejun.guo@intel.com> | 2023-12-15 20:04:54 +0800 |
commit | a1e8892a8a2e5d32e31cc5b30a3727700de51017 (patch) | |
tree | fb5b8464f873968d200a2d2c9bad08524ae05fb6 | |
parent | 833722343aa52c77893f2330d1dc06b5423da6fe (diff) | |
download | ffmpeg-a1e8892a8a2e5d32e31cc5b30a3727700de51017.tar.gz |
libavfilter/vf_dnn_detect: Fix uninitialized variables error
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
-rw-r--r-- | libavfilter/vf_dnn_detect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c index b2e9b8d4c6..5668b8b017 100644 --- a/libavfilter/vf_dnn_detect.c +++ b/libavfilter/vf_dnn_detect.c @@ -139,7 +139,8 @@ static int dnn_detect_parse_yolo_output(AVFrame *frame, DNNData *output, int out { DnnDetectContext *ctx = filter_ctx->priv; float conf_threshold = ctx->confidence; - int detection_boxes, box_size, cell_w, cell_h, scale_w, scale_h; + int detection_boxes, box_size; + int cell_w = 0, cell_h = 0, scale_w = 0, scale_h = 0; int nb_classes = ctx->nb_classes; float *output_data = output[output_index].data; float *anchors = ctx->anchors; |