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:
parent
833722343a
commit
a1e8892a8a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user