1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

libavfilter/vf_dnn_detect: Fix uninitialized variables error

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
Wenbin Chen 2023-12-14 10:49:27 +08:00 committed by Guo Yejun
parent 833722343a
commit a1e8892a8a

View File

@ -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;