libavfilter/vf_dnn_detect: Fix an incorrect expression

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

View File

@ -106,7 +106,7 @@ static int dnn_detect_parse_anchors(char *anchors_str, float **anchors)
i++;
}
nb_anchor++;
anchors_buf = av_mallocz(nb_anchor * sizeof(*anchors));
anchors_buf = av_mallocz(nb_anchor * sizeof(**anchors));
if (!anchors_buf) {
return 0;
}